feat(build): download icons during package build#41
Conversation
Add icon download step to build-source.sh that downloads missing icons from CDN URLs stored in each app's metadata.yaml before building packages. This ensures all CasaOS container packages include icons for offline Homarr dashboard display, without requiring icons to be stored in the repository. The metadata.yaml files already contain icon URLs from the original CasaOS app manifests, making this approach reliable for all 144 apps. Closes #39 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
❌ Build failed for casaos Please check the workflow logs for details. |
Use `: $((var++))` instead of `((var++))` to prevent script failure when incrementing from 0 with set -e. In bash, ((0)) returns exit code 1, causing the script to terminate on the first counter increment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds automatic icon downloading from CasaOS CDN URLs during package build. The approach is sound - downloading at build time avoids repo bloat while ensuring icons are available. Issues Found
What's Good
RecommendationIf the current build passes, the PR is ready to merge. If it fails due to the grep issue mentioned above, the fix is straightforward. |
|
✅ Build successful for casaos 📦 Built 145 packages Packages are available as workflow artifacts for inspection. |
Summary
Add icon download step to
build-source.shthat downloads missing icons from CDN URLs stored in each app'smetadata.yamlbefore building packages.How it works
icon:URL frommetadata.yamlWhy this approach
Test plan
Closes #39
🤖 Generated with Claude Code