File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 4040
4141 - name : Run Packaging Script
4242 working-directory : ${{github.workspace}}
43+ env :
44+ AC_USERNAME : ${{ secrets.AC_USERNAME }}
45+ AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
4346 run : CLEAR_INTL=1 ./build.sh
4447
4548 - name : Compress Artifacts
Original file line number Diff line number Diff line change @@ -232,8 +232,28 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
232232 mv ./hvcc/dist/pyinstaller/manylinux_2_35_x86_64/Heavy Heavy/bin/Heavy/
233233elif [[ " $OSTYPE " == " darwin" * ]]; then
234234 mv ./hvcc/dist/pyinstaller/macosx_15_0_x86_64/Heavy Heavy/bin/Heavy/
235- /usr/bin/codesign --force -s " Developer ID Application: Timothy Schoen (7SV7JPRR2L)" ./Heavy/bin/*
236- /usr/bin/codesign --force -s " Developer ID Application: Timothy Schoen (7SV7JPRR2L)" ./Heavy/bin/Heavy/Heavy
235+
236+ cat > entitlements.plist << EOF
237+ <?xml version="1.0" encoding="UTF-8"?>
238+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
239+ <plist version="1.0">
240+ <dict>
241+ <key>com.apple.security.cs.disable-library-validation</key>
242+ <true/>
243+ </dict>
244+ </plist>
245+ EOF
246+
247+ find ./Heavy/bin -type f -perm +111 -exec /usr/bin/codesign --force --options runtime -s " Developer ID Application: Timothy Schoen (7SV7JPRR2L)" {} \;
248+ /usr/bin/codesign --force --options runtime --entitlements entitlements.plist -s " Developer ID Application: Timothy Schoen (7SV7JPRR2L)" ./Heavy/bin/Heavy/Heavy
249+
250+ # Submit the zipped executable for notarization
251+ # This makes sure we can at least run it with online notarization
252+ ditto -c -k --keepParent ./Heavy/bin Heavy.zip
253+ xcrun notarytool store-credentials " notary_login" --apple-id ${AC_USERNAME} --password ${AC_PASSWORD} --team-id " 7SV7JPRR2L"
254+ xcrun notarytool submit Heavy.zip --keychain-profile " notary_login" --wait
255+ rm Heavy.zip
256+ rm entitlements.plist
237257fi
238258
239259cp VERSION ./Heavy/VERSION
You can’t perform that action at this time.
0 commit comments