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 <noreply@anthropic.com>
This commit is contained in:
SRS IT
2026-03-29 12:35:39 -04:00
parent d8c32b438f
commit 0aac2b60eb
+6 -7
View File
@@ -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