Skip to content

Commit 04e808d

Browse files
authored
fix(sign): cannot notarize (#6)
When notarizing the APP, it's necessary to add `--options=runtime`. At the same time, the issue of krun not being able to load dylib through env has been fixed, along with some spelling errors. Signed-off-by: Kevin Cui <[email protected]>
1 parent ab39af6 commit 04e808d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

krunkit.entitlements

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<dict>
55
<key>com.apple.security.hypervisor</key>
66
<true/>
7-
<key>com.apple.security.cs.disable-library-validationr</key>
7+
<key>com.apple.security.cs.disable-library-validation</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
810
<true/>
911
</dict>
1012
</plist>

main.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ cd $WORK
4040

4141
# codesign
4242
echo "Signing gvproxy..."
43-
codesign --force --sign $CODESIGN_IDENTITY --timestamp $WORK/out/gvproxy
43+
codesign --force --sign $CODESIGN_IDENTITY --options=runtime --timestamp $WORK/out/gvproxy
4444

4545
echo "Signing krunkit..."
46-
codesign --force --sign $CODESIGN_IDENTITY --timestamp --entitlements krunkit.entitlements $WORK/out/krunkit
46+
codesign --force --sign $CODESIGN_IDENTITY --options=runtime --timestamp --entitlements krunkit.entitlements $WORK/out/krunkit
4747

48-
find $WORK/out -name "*.dylib" -type f -exec sh -c "echo 'Signing {}...'; codesign --force --sign $CODESIGN_IDENTITY --timestamp {}" ';'
48+
find $WORK/out -name "*.dylib" -type f -exec sh -c "echo 'Signing {}...'; codesign --force --sign $CODESIGN_IDENTITY --options=runtime --timestamp {}" ';'
4949

5050
# pack
5151
echo "Packing..."

0 commit comments

Comments
 (0)