From 057d47f03038a3e41b4c4e65b14160aaf50f86bc Mon Sep 17 00:00:00 2001 From: Rodrigues Costa Date: Fri, 23 Sep 2022 12:35:40 -0300 Subject: [PATCH 1/3] Update electron-builder.js added support for arm64 builds --- electron-builder.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron-builder.js b/electron-builder.js index 49d5b77..2486ef9 100644 --- a/electron-builder.js +++ b/electron-builder.js @@ -19,6 +19,10 @@ module.exports = { mac: { icon: `${FOLDERS.RESOURCES}/icons/icon.icns`, category: 'public.app-category.utilities', + target: { + target: 'default', + arch: ['x64', 'arm64'], + }, }, dmg: { From 0c33ac594ea2e52efb9827510250997bdbd23374 Mon Sep 17 00:00:00 2001 From: Rodrigues Costa Date: Fri, 23 Sep 2022 13:13:55 -0300 Subject: [PATCH 2/3] Create test-dist.yml --- .github/workflows/test-dist.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test-dist.yml diff --git a/.github/workflows/test-dist.yml b/.github/workflows/test-dist.yml new file mode 100644 index 0000000..35f0dcc --- /dev/null +++ b/.github/workflows/test-dist.yml @@ -0,0 +1,36 @@ +on: + push: + tags: ["*"] + +jobs: + release: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v2 + with: + node-version: 16 + + - name: apt-update + if: startsWith(matrix.os, 'ubuntu-latest') + run: sudo apt-get update + + - name: autoremove + if: startsWith(matrix.os, 'ubuntu-latest') + run: sudo apt autoremove + + - name: Install libarchive rpm on Linux + if: startsWith(matrix.os, 'ubuntu-latest') + run: sudo apt-get install libarchive-tools rpm + + - name: Run Electron Build + run: yarn dist From 8869f19e2d7cf1d51448a985c3438ccaf0750a4f Mon Sep 17 00:00:00 2001 From: Rodrigues Costa Date: Fri, 23 Sep 2022 13:15:08 -0300 Subject: [PATCH 3/3] Delete test-dist.yml --- .github/workflows/test-dist.yml | 36 --------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/test-dist.yml diff --git a/.github/workflows/test-dist.yml b/.github/workflows/test-dist.yml deleted file mode 100644 index 35f0dcc..0000000 --- a/.github/workflows/test-dist.yml +++ /dev/null @@ -1,36 +0,0 @@ -on: - push: - tags: ["*"] - -jobs: - release: - if: startsWith(github.ref, 'refs/tags/v') - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: apt-update - if: startsWith(matrix.os, 'ubuntu-latest') - run: sudo apt-get update - - - name: autoremove - if: startsWith(matrix.os, 'ubuntu-latest') - run: sudo apt autoremove - - - name: Install libarchive rpm on Linux - if: startsWith(matrix.os, 'ubuntu-latest') - run: sudo apt-get install libarchive-tools rpm - - - name: Run Electron Build - run: yarn dist