From 18abb033c70e9da8af6d99d9491d56ae76fbbf02 Mon Sep 17 00:00:00 2001 From: mrvnklm <24477241+mrvnklm@users.noreply.github.com> Date: Thu, 4 Nov 2021 11:11:46 +0200 Subject: [PATCH] fix build arch --- .github/workflows/build.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d08133b..ef95e3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,14 +24,32 @@ jobs: - name: Build/release Electron app uses: samuelmeuli/action-electron-builder@v1 - if: runner.os == 'Windows' || runner.os == 'macOS' + if: runner.os == 'macOS' with: skip_build: true # GitHub token, automatically provided to the action # (No need to define this secret in the repo settings) github_token: ${{ secrets.github_token }} - args: "--ia32" + args: "--x64 --arm64" + + mac_certs: ${{ secrets.mac_certs }} + mac_certs_password: ${{ secrets.mac_certs_password }} + + # If the commit is tagged with a version (e.g. "v1.0.0"), + # release the app after building + release: ${{ startsWith(github.ref, 'refs/tags/v') }} + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + if: runner.os == 'Windows' + with: + skip_build: true + # GitHub token, automatically provided to the action + # (No need to define this secret in the repo settings) + github_token: ${{ secrets.github_token }} + + args: "--ia32 --x64 --arm64" mac_certs: ${{ secrets.mac_certs }} mac_certs_password: ${{ secrets.mac_certs_password }} @@ -49,7 +67,7 @@ jobs: # (No need to define this secret in the repo settings) github_token: ${{ secrets.github_token }} - args: "--linux appimage --ia32 --x64" + args: "--linux appimage --ia32 --x64 --arm64" # If the commit is tagged with a version (e.g. "v1.0.0"), # release the app after building