Skip to content

Commit f3331a9

Browse files
committed
Update Mac build signing
1 parent 777d8d5 commit f3331a9

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/workflows/build.yml

+23
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,29 @@ jobs:
5252
if: matrix.os == 'macos-latest'
5353
run: |
5454
echo ${{ secrets.GODOT_MACOS_NOTARIZATION_API_KEY }} | base64 --decode > notarization_api_key.p8
55+
56+
# Create build directory and add entitlements file
57+
mkdir -p build
58+
cat > build/entitlements.mac.plist << 'EOL'
59+
<?xml version="1.0" encoding="UTF-8"?>
60+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
61+
<plist version="1.0">
62+
<dict>
63+
<key>com.apple.security.cs.allow-jit</key>
64+
<true/>
65+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
66+
<true/>
67+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
68+
<true/>
69+
<key>com.apple.security.cs.disable-library-validation</key>
70+
<true/>
71+
<key>com.apple.security.inherit</key>
72+
<true/>
73+
<key>com.apple.security.automation.apple-events</key>
74+
<true/>
75+
</dict>
76+
</plist>
77+
EOL
5578
5679
- name: Build Electron app
5780
if: matrix.os != 'ubuntu-latest-large'

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,9 @@
145145
"icon": "public/icon.icns",
146146
"hardenedRuntime": true,
147147
"gatekeeperAssess": false,
148-
"entitlements": "build/entitlements.mac.plist",
149-
"entitlementsInherit": "build/entitlements.mac.plist",
150-
"notarize": {
151-
"teamId": "APPLE_TEAM_ID"
152-
}
148+
"entitlements": "./build/entitlements.mac.plist",
149+
"entitlementsInherit": "./build/entitlements.mac.plist",
150+
"notarize": true
153151
}
154152
},
155153
"devDependencies": {

0 commit comments

Comments
 (0)