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
|
- name: Install app-builder to system PATH
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(node -e "console.log(require('./node_modules/app-builder-bin/package.json').version)")
|
# The binary is bundled in the npm package for the current platform.
|
||||||
echo "Downloading app-builder $VERSION"
|
# Copy it to /usr/local/bin so USE_SYSTEM_APP_BUILDER=true can find it.
|
||||||
curl -fL "https://github.com/develar/app-builder/releases/download/v${VERSION}/app-builder_${VERSION}_linux_amd64.tar.gz" \
|
BINARY=$(node -e "console.log(require('./node_modules/app-builder-bin').appBuilderPath)")
|
||||||
-o /tmp/app-builder.tar.gz
|
echo "app-builder binary: $BINARY"
|
||||||
tar -xzf /tmp/app-builder.tar.gz -C /tmp/
|
chmod +x "$BINARY"
|
||||||
chmod +x /tmp/app-builder
|
sudo cp "$BINARY" /usr/local/bin/app-builder
|
||||||
sudo mv /tmp/app-builder /usr/local/bin/app-builder
|
|
||||||
app-builder --version
|
app-builder --version
|
||||||
|
|
||||||
- name: Vite build
|
- name: Vite build
|
||||||
|
|||||||
Reference in New Issue
Block a user