Skip to content

Commit bf69225

Browse files
authored
Support for Apple Silicon - arm64 (#475)
1 parent e0121ae commit bf69225

File tree

4 files changed

+382
-100
lines changed

4 files changed

+382
-100
lines changed

.github/workflows/build-app.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ jobs:
4040
name: Gitify-dist-mac
4141
path: dist
4242

43+
- name: Clean up dist
44+
run: rm -rfv dist
45+
46+
- name: Make macOS ARM64 (electron-builder)
47+
env:
48+
CSC_LINK: ${{ secrets.mac_certs }}
49+
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
50+
run: yarn make:macos_arm --publish=never -c.mac.identity=null
51+
52+
- name: Clean up builds
53+
run: rm -rfv dist/mac-arm64
54+
55+
- uses: actions/upload-artifact@v1
56+
with:
57+
name: Gitify-dist-mac-arm64
58+
path: dist
59+
60+
4361
build-windows:
4462
runs-on: windows-2019
4563

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
4141
GH_TOKEN: ${{ secrets.gh_token }}
4242
NOTARIZE: true
43-
run: yarn make:macos --publish onTagOrDraft
43+
run: |
44+
yarn make:macos --publish onTagOrDraft
45+
yarn make:macos_arm --publish onTagOrDraft
4446
4547
release-windows:
4648
runs-on: windows-2019

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"watch": "webpack --config webpack.common.js --watch",
99
"make:linux": "electron-builder --linux",
1010
"make:macos": "electron-builder --mac",
11+
"make:macos_arm": "electron-builder --mac --arm64",
1112
"make:win": "electron-builder --win",
1213
"prettier:check": "prettier --check 'src/**/*.{js,ts,tsx}'",
1314
"prettier:apply": "prettier --write 'src/**/*.{js,ts,tsx}'",
@@ -138,7 +139,7 @@
138139
"@types/react-transition-group": "^4.4.0",
139140
"css-loader": "^5.0.1",
140141
"electron": "^11.1.0",
141-
"electron-builder": "^22.9.1",
142+
"electron-builder": "^22.10.4",
142143
"electron-notarize": "^1.0.0",
143144
"jest": "^26.6.3",
144145
"nock": "^13.0.5",

0 commit comments

Comments
 (0)