Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 39973cd

Browse files
authored
Merge pull request paritytech#306 from subspace/macos-12-fix
macOS 12 signing fix
1 parent 2697fc3 commit 39973cd

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
<!-- required for incoming connections -->
6+
<key>com.apple.security.network.server</key>
7+
<true/>
8+
9+
<!-- required for outgoing connections -->
10+
<key>com.apple.security.network.client</key>
11+
<true/>
12+
13+
<!-- required for read/write access to files -->
14+
<key>com.apple.security.files.user-selected.read-write</key>
15+
<true/>
16+
17+
<!-- without this, it is crashing during sync/plot, idk why -->
18+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
19+
<true/>
20+
</dict>
21+
</plist>

.github/workflows/snapshot-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ jobs:
155155
security import certificate.p12 -k build.keychain -P "${{ secrets.MACOS_CERTIFICATE_PW }}" -T /usr/bin/codesign
156156
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.MACOS_CERTIFICATE_PW }}" build.keychain
157157
echo "Signing farmer"
158-
codesign --force --options=runtime -s "${{ secrets.MACOS_IDENTITY }}" --timestamp target/production/subspace-farmer
158+
codesign --force --options=runtime --entitlements .github/workflows/Entitlements.plist -s "${{ secrets.MACOS_IDENTITY }}" --timestamp target/production/subspace-farmer
159159
echo "Signing node"
160-
codesign --force --options=runtime -s "${{ secrets.MACOS_IDENTITY }}" --timestamp target/production/subspace-node
160+
codesign --force --options=runtime --entitlements .github/workflows/Entitlements.plist -s "${{ secrets.MACOS_IDENTITY }}" --timestamp target/production/subspace-node
161161
echo "Creating an archive"
162162
mkdir target/production/macos-binaries
163163
cp target/production/subspace-farmer target/production/subspace-node target/production/macos-binaries

0 commit comments

Comments
 (0)