Skip to content

Commit

Permalink
Ci: add Mac Arm64 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Dec 19, 2024
1 parent 0e9544a commit 0b77860
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-13-xlarge
suffix: mac
arch: arm64
extension: dmg
latestMetadataName: latest-mac-arm64.yml

- os: macos-13
suffix: mac
arch: x64
Expand Down Expand Up @@ -143,7 +149,7 @@ jobs:
with:
name: Cockpit-${{ matrix.suffix }}-${{ matrix.arch }}-${{ env.VERSION }}.zip
path: dist/Cockpit*.zip
if-no-files-found: error
if-no-files-found: ignore

- name: Upload latest metadata artifact
uses: actions/upload-artifact@v4
Expand Down
27 changes: 25 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,17 @@
},
"build": {
"files": [
"dist"
"dist/**/*",
"!dist/**/*.map",
"!dist/**/*.d.ts",
"!dist/**/*.js.map"
],
"directories": {
"buildResources": "public"
},
"asar": true,
"asarUnpack": [
"node_modules/**/*.node"
],
"appId": "org.bluerobotics.cockpit",
"productName": "Cockpit",
Expand All @@ -131,8 +141,21 @@
},
"artifactName": "${productName}-${os}-${arch}-${version}.${ext}",
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
],
"category": "public.app-category.utilities",
"icon": "public/pwa-512x512.png"
"icon": "public/pwa-512x512.png",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
},
"win": {
"icon": "public/pwa-512x512.png"
Expand Down

0 comments on commit 0b77860

Please sign in to comment.