Skip to content

Commit

Permalink
chore: sign macos dist
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed May 7, 2024
1 parent 9644cbd commit 077c67e
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 156 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ jobs:
run: pnpm build

- name: Electron - Build app
env:
APPLE_ID: ${{ secrets.APPLEID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLEIDPASS }}
APPLE_TEAM_ID: ${{ secrets.TEAMID }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
run: pnpm dist-mac
timeout-minutes: 60

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
12 changes: 12 additions & 0 deletions apps/electron/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
21 changes: 14 additions & 7 deletions apps/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ontime-prerelease",
"name": "ontime",
"version": "3.0.0-beta.3",
"author": "Carlos Valente",
"description": "Time keeping for live events",
Expand All @@ -13,7 +13,7 @@
"main": "main.js",
"devDependencies": {
"electron": "^28.0.0",
"electron-builder": "^24.9.1",
"electron-builder": "^24.13.3",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"prettier": "^3.0.3"
Expand All @@ -23,20 +23,27 @@
"lint": "eslint . --quiet",
"lint-staged": "eslint",
"dev:electron": "cross-env NODE_ENV=development electron .",
"dist-win": "electron-builder --publish=never --x64 --win",
"dist-mac": "electron-builder --publish=never --mac",
"dist-linux": "electron-builder --publish=never --x64 --linux",
"dist-win": "electron-builder --publish=never --x64 --win",
"dist-mac": "electron-builder --publish=never --mac",
"dist-linux": "electron-builder --publish=never --x64 --linux",
"cleanup": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
"build": {
"productName": "ontime-prerelease",
"appId": "no.lightdev.ontime.prerelease",
"productName": "ontime",
"appId": "no.lightdev.ontime",
"asar": true,
"dmg": {
"artifactName": "ontime-macOS-${arch}.dmg",
"icon": "icon.icns"
},
"mac": {
"notarize": {
"teamId": "MDAU6QK6R4"
},
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "./entitlements.plist",
"entitlementsInherit": "./entitlements.plist",
"target": {
"target": "dmg",
"arch": [
Expand Down
Loading

0 comments on commit 077c67e

Please sign in to comment.