Skip to content

Commit

Permalink
fix: sign macOS releases & add new release for arm64
Browse files Browse the repository at this point in the history
Closes #134
  • Loading branch information
fmaclen committed Aug 7, 2024
1 parent 244d425 commit 4f4c6e7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-latest] # macos-13 is the lastest one on x86
os: [macos-13, macos-latest, ubuntu-latest, windows-latest] # macos-13 is the lastest one on x86

steps:
- uses: actions/checkout@v4
Expand All @@ -77,9 +77,15 @@ jobs:
run: npm ci

- name: Build & release Electron app
run: npm run electron:build
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
run: npm run electron:build


docker:
needs: versioning
Expand Down
3 changes: 3 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ files:
mac:
category: public.app-category.developer-tools
icon: electron/resources/icons/mac/icon.icns
entitlements: electron/resources/mac/entitlements.mac.plist
entitlementsInherit: electron/resources/mac/entitlements.mac.plist
hardenedRuntime: true
gatekeeperAssess: false
target: dmg

win:
Expand Down
8 changes: 8 additions & 0 deletions electron/resources/mac/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
</dict>
</plist>

0 comments on commit 4f4c6e7

Please sign in to comment.