debug(secubox): add verbose logging for appstore install
Added debugging output to understand why appstore catalog isn't being included in package builds. The install section now: - Checks if source file exists before attempting install - Shows full paths being used - Displays directory contents if file is missing - Exits with error if file not found (fail-fast) This will help diagnose whether the issue is: - Wrong CURDIR path during build - Files not present in build directory - Permissions issue preventing access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
43568ef41b
commit
7b8864a036
@ -34,10 +34,16 @@ define Package/$(PKG_NAME)/install
|
||||
|
||||
# Install AppStore catalog (CRITICAL: Required for app store functionality)
|
||||
$(INSTALL_DIR) $(1)/usr/share/secubox/appstore
|
||||
$(INSTALL_DATA) $(CURDIR)/appstore/apps.json $(1)/usr/share/secubox/appstore/apps.json
|
||||
|
||||
# Verify appstore file was installed
|
||||
@echo "SecuBox: Installed appstore catalog to /usr/share/secubox/appstore/apps.json"
|
||||
@if [ -f "$(CURDIR)/appstore/apps.json" ]; then \
|
||||
$(INSTALL_DATA) $(CURDIR)/appstore/apps.json $(1)/usr/share/secubox/appstore/apps.json; \
|
||||
echo "SecuBox: Installed appstore catalog ($(CURDIR)/appstore/apps.json -> /usr/share/secubox/appstore/apps.json)"; \
|
||||
else \
|
||||
echo "ERROR: AppStore catalog source file not found at $(CURDIR)/appstore/apps.json"; \
|
||||
echo " PWD: $$(pwd)"; \
|
||||
echo " CURDIR: $(CURDIR)"; \
|
||||
echo " Contents: $$(ls -la $(CURDIR)/ 2>&1 | head -10)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
|
||||
Loading…
Reference in New Issue
Block a user