From 0aac2b60eba99f7948ef6ef5c69b5dfaa32a5a4c Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sun, 29 Mar 2026 12:35:39 -0400 Subject: [PATCH] fix: copy bundled app-builder binary to system PATH instead of downloading app-builder-bin v5 alpha ships the binary inside the npm package itself (no GitHub release assets). Copy the npm-bundled binary to /usr/local/bin using the path from require('app-builder-bin').appBuilderPath so USE_SYSTEM_APP_BUILDER=true can find it in PATH. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build-linux.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index c70da81..41b4754 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -31,13 +31,12 @@ jobs: - name: Install app-builder to system PATH run: | - VERSION=$(node -e "console.log(require('./node_modules/app-builder-bin/package.json').version)") - echo "Downloading app-builder $VERSION" - curl -fL "https://github.com/develar/app-builder/releases/download/v${VERSION}/app-builder_${VERSION}_linux_amd64.tar.gz" \ - -o /tmp/app-builder.tar.gz - tar -xzf /tmp/app-builder.tar.gz -C /tmp/ - chmod +x /tmp/app-builder - sudo mv /tmp/app-builder /usr/local/bin/app-builder + # The binary is bundled in the npm package for the current platform. + # Copy it to /usr/local/bin so USE_SYSTEM_APP_BUILDER=true can find it. + BINARY=$(node -e "console.log(require('./node_modules/app-builder-bin').appBuilderPath)") + echo "app-builder binary: $BINARY" + chmod +x "$BINARY" + sudo cp "$BINARY" /usr/local/bin/app-builder app-builder --version - name: Vite build