Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ jobs:
CI: false
NODE_OPTIONS: --max-old-space-size=4096
strategy:
fail-fast: false
matrix:
node-version: [18.20.3]
arch: [x64, arm64]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -135,20 +137,24 @@ jobs:
- name: yarn install
run: yarn install

- name: rebuild native modules for target arch
run: |
npx electron-rebuild --arch=${{ matrix.arch }}

- name: install dmg-license
run: yarn add dmg-license

- name: package
id: package
run: |
yarn dist
yarn build && npx electron-builder -p never --mac --${{ matrix.arch }}

- name: Cleanup artifacts
run: |
npx rimraf "dist/!(*.deb|*.AppImage|*.dmg|*.exe)"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Scribe-Mac-${{ github.run_id }}-${{ github.sha }}
path: dist
overwrite: true
name: Scribe-Mac-${{ matrix.arch }}-${{ github.run_id }}-${{ github.sha }}
path: dist
overwrite: true
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"build": "next build renderer && next export renderer",
"pack-app": "yarn build && electron-builder --dir",
"dist": "yarn build && electron-builder -p never",
"dist:mac": "yarn build && electron-builder -p never --mac",
"dist:mac:x64": "yarn build && electron-builder -p never --mac --x64",
"dist:mac:arm64": "yarn build && electron-builder -p never --mac --arm64",
"deploy": "yarn build && electron-builder -p always",
"makewin": "yarn build && electron-builder --windows"
},
Expand Down Expand Up @@ -61,9 +64,17 @@
},
"mac": {
"category": "public.app-category.Utilities",
"target": "dmg",
"target": [
{
"target": "dmg",
"arch": ["x64", "arm64"]
}
],
"icon": "styles/scribe.icns",
"type": "distribution"
"type": "distribution",
"minimumSystemVersion": "10.15",
"hardenedRuntime": false,
"gatekeeperAssess": false
},
"win": {
"target": "nsis",
Expand All @@ -79,7 +90,7 @@
"publish": [
{
"provider": "github",
"owner": "vipinpaul",
"owner": "bible-technology",
"repo": "scribe-scripture-editor"
}
]
Expand All @@ -105,6 +116,7 @@
"canvas": "^2.11.2",
"electron": "^21.0.1",
"electron-builder": "^23.6.0",
"electron-rebuild": "^3.2.9",
"eslint": "^8.17.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.0.0",
Expand Down
Loading
Loading