From 930a8f920290658b843ec09ee0997cc2dcd89e4a Mon Sep 17 00:00:00 2001 From: Lachie Underhill Date: Thu, 12 Sep 2024 12:28:37 +1000 Subject: [PATCH] ci(gui): rebuild electron modules when making electron image --- .github/workflows/build-release-electron.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release-electron.yml b/.github/workflows/build-release-electron.yml index 8da6f3b9..620f4851 100644 --- a/.github/workflows/build-release-electron.yml +++ b/.github/workflows/build-release-electron.yml @@ -45,7 +45,20 @@ jobs: - run: pnpm install --frozen-lockfile - - run: pnpm make + - name: Rebuild Electron modules + run: | + cd gui + npx electron-rebuild + if: matrix.os == 'macos-latest' + + - name: Build and package + run: | + if [ "${{ matrix.os }}" == "macos-latest" ]; then + pnpm make -- --arch=x64 --verbose + else + pnpm make --verbose + fi + shell: bash - name: Upload Artifacts uses: softprops/action-gh-release@v2