Skip to content

Commit 1fb8a3d

Browse files
mac os signing
1 parent 4d3c64c commit 1fb8a3d

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
env:
4141
DEBUG: electron-builder
4242
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
# macOS signing environment variables
44+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
45+
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
46+
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
47+
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
48+
CSC_LINK: ${{ secrets.MACOS_CERTIFICATE }}
49+
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
4350
run: npm run electron-build
4451

4552
- name: Build Electron app (Linux)

entitlements.mac.plist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
10+
<true/>
11+
<key>com.apple.security.cs.disable-library-validation</key>
12+
<true/>
13+
<key>com.apple.security.cs.disable-executable-page-protection</key>
14+
<true/>
15+
<key>com.apple.security.cs.debugger</key>
16+
<true/>
17+
<key>com.apple.security.network.client</key>
18+
<true/>
19+
<key>com.apple.security.network.server</key>
20+
<true/>
21+
<key>com.apple.security.files.user-selected.read-write</key>
22+
<true/>
23+
</dict>
24+
</plist>

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,21 @@
142142
],
143143
"category": "public.app-category.developer-tools",
144144
"artifactName": "Drivechain-Launcher-${version}-${arch}.${ext}",
145-
"icon": "public/icon.icns"
145+
"icon": "public/icon.icns",
146+
"hardenedRuntime": true,
147+
"gatekeeperAssess": false,
148+
"entitlements": "entitlements.mac.plist",
149+
"entitlementsInherit": "entitlements.mac.plist",
150+
"notarize": {
151+
"teamId": "$APPLE_TEAM_ID"
152+
},
153+
"extendInfo": {
154+
"NSAppleEventsUsageDescription": "Please allow access to script browser applications to detect drivechain nodes.",
155+
"NSCameraUsageDescription": "Application requests access to the device's camera.",
156+
"NSMicrophoneUsageDescription": "Application requests access to the device's microphone.",
157+
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
158+
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
159+
}
146160
}
147161
},
148162
"devDependencies": {

0 commit comments

Comments
 (0)