From 7b8864a0365b57822177d4a9df24cdd87788416a Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 31 Dec 2025 13:33:57 +0100 Subject: [PATCH] debug(secubox): add verbose logging for appstore install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- luci-app-secubox/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/luci-app-secubox/Makefile b/luci-app-secubox/Makefile index c4f0a384..52c740ab 100644 --- a/luci-app-secubox/Makefile +++ b/luci-app-secubox/Makefile @@ -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