mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
fix(starlark): use correct 'fileName' field from manifest (camelCase)
The Tronbyte manifest uses 'fileName' (camelCase), not 'filename' (lowercase).
This caused the download to fall back to {app_id}.star which doesn't exist
for apps like analogclock (which has analog_clock.star).
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7565,7 +7565,8 @@ def install_from_tronbyte_repository():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Pass filename from metadata (e.g., "analog_clock.star" for analogclock app)
|
# Pass filename from metadata (e.g., "analog_clock.star" for analogclock app)
|
||||||
filename = metadata.get('filename') if metadata else None
|
# Note: manifest uses 'fileName' (camelCase), not 'filename'
|
||||||
|
filename = metadata.get('fileName') if metadata else None
|
||||||
success, error = repo.download_star_file(data['app_id'], Path(temp_path), filename=filename)
|
success, error = repo.download_star_file(data['app_id'], Path(temp_path), filename=filename)
|
||||||
if not success:
|
if not success:
|
||||||
return jsonify({'status': 'error', 'message': f'Failed to download app: {error}'}), 500
|
return jsonify({'status': 'error', 'message': f'Failed to download app: {error}'}), 500
|
||||||
|
|||||||
Reference in New Issue
Block a user