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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user