From e79ff0214162cb6321e9aa6bc95487d5d5d1e58a Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sun, 29 Mar 2026 00:04:28 -0400 Subject: [PATCH] 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 --- .github/workflows/build-linux.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index f9f4bb5..ff1fbe4 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -29,6 +29,20 @@ jobs: - name: Install workspace dependencies 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 run: npx electron-vite build working-directory: apps/desktop