From d79f2da411690b2d40fd7f45446333b2a3e0924e Mon Sep 17 00:00:00 2001 From: Andy <119136210+AndyMik90@users.noreply.github.com> Date: Thu, 25 Dec 2025 20:31:57 +0100 Subject: [PATCH] fix(ci): use correct electron-builder arch flags (#278) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project switched from pnpm to npm, which handles script argument passing differently. pnpm adds a -- separator that caused electron-builder to ignore the --arch argument, but npm passes it directly. Since --arch is a deprecated electron-builder argument, use the recommended flags instead: - --arch=x64 → --x64 - --arch=arm64 → --arm64 This fixes Mac Intel and ARM64 builds failing with "Unknown argument: arch" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 --- .github/workflows/beta-release.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 6da6dfd3..848c2d6a 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -112,7 +112,7 @@ jobs: run: cd apps/frontend && npm run build - name: Package macOS (Intel) - run: cd apps/frontend && npm run package:mac -- --arch=x64 + run: cd apps/frontend && npm run package:mac -- --x64 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERTIFICATE }} @@ -180,7 +180,7 @@ jobs: run: cd apps/frontend && npm run build - name: Package macOS (Apple Silicon) - run: cd apps/frontend && npm run package:mac -- --arch=arm64 + run: cd apps/frontend && npm run package:mac -- --arm64 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERTIFICATE }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa5b1719..71d8cdb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: run: cd apps/frontend && npm run build - name: Package macOS (Intel) - run: cd apps/frontend && npm run package:mac -- --arch=x64 + run: cd apps/frontend && npm run package:mac -- --x64 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERTIFICATE }} @@ -116,7 +116,7 @@ jobs: run: cd apps/frontend && npm run build - name: Package macOS (Apple Silicon) - run: cd apps/frontend && npm run package:mac -- --arch=arm64 + run: cd apps/frontend && npm run package:mac -- --arm64 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.MAC_CERTIFICATE }}