fix: add app-builder binary download step to Linux workflow
The postinstall script for app-builder-bin does not download the binary automatically in the GitHub Actions environment. Add an explicit step to download and chmod the binary before running electron-builder. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,20 @@ jobs:
|
|||||||
- name: Install workspace dependencies
|
- name: Install workspace dependencies
|
||||||
run: npm install --legacy-peer-deps
|
run: npm install --legacy-peer-deps
|
||||||
|
|
||||||
|
- name: Ensure app-builder binary
|
||||||
|
run: |
|
||||||
|
BINARY="node_modules/app-builder-bin/linux/x64/app-builder"
|
||||||
|
if [ ! -f "$BINARY" ]; then
|
||||||
|
VERSION=$(node -e "console.log(require('./node_modules/app-builder-bin/package.json').version)")
|
||||||
|
echo "Downloading app-builder $VERSION"
|
||||||
|
mkdir -p "$(dirname $BINARY)"
|
||||||
|
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 "$(dirname $BINARY)"
|
||||||
|
fi
|
||||||
|
chmod +x "$BINARY"
|
||||||
|
"$BINARY" --version
|
||||||
|
|
||||||
- name: Vite build
|
- name: Vite build
|
||||||
run: npx electron-vite build
|
run: npx electron-vite build
|
||||||
working-directory: apps/desktop
|
working-directory: apps/desktop
|
||||||
|
|||||||
Reference in New Issue
Block a user