CI: Add code signing to fix app launch crash on macOS

This commit is contained in:
Illustar0 2025-07-20 23:22:29 +08:00 committed by GitHub
commit 54a4c6f814
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,7 +131,10 @@ jobs:
pushd build pushd build
PACKAGE_RETRY=0 PACKAGE_RETRY=0
while [ "$PACKAGE_RETRY" -lt "3" ]; do while [ "$PACKAGE_RETRY" -lt "3" ]; do
macdeployqt "$appName.app" -dmg -no-strip macdeployqt "$appName.app" -no-strip
xattr -cr "$appName.app"
codesign --force --deep --sign - "$appName.app"
hdiutil create -fs HFS+ -srcfolder "$appName.app" -volname "$appName" "$appName.dmg"
if [ -f "$appName.dmg" ]; then if [ -f "$appName.dmg" ]; then
break break
fi fi