mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
ci: staple the notarization ticket to the macOS pkg
The macos and macos10 jobs submit the signed .pkg to notarytool but never staple the resulting ticket to it. Without a stapled ticket Gatekeeper has to reach Apple's notary service to verify the package, so an install on a machine that is offline — or behind a blocked network, which is a plausible state for this particular app before it is running — fails with "cannot be opened because Apple cannot check it for malicious software". Staple after a successful submission, which is the documented final step of the Developer ID distribution flow.
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -406,6 +406,7 @@ jobs:
|
||||
productsign --sign "Developer ID Installer: Prometheus Advertising Corp (489PDK5LP3)" Unsigned-Workbench.pkg $pkg_name
|
||||
rm -f Unsigned-Workbench.pkg
|
||||
xcrun notarytool submit $pkg_name --apple-id $APPLE_ID --team-id $APPLE_TEAM_ID --password $APPLE_APP_SPECIFIC_PASSWORD --wait
|
||||
xcrun stapler staple $pkg_name
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -508,6 +509,7 @@ jobs:
|
||||
productsign --sign "Developer ID Installer: Prometheus Advertising Corp (489PDK5LP3)" Unsigned-Workbench.pkg $pkg_name
|
||||
rm -f Unsigned-Workbench.pkg
|
||||
xcrun notarytool submit $pkg_name --apple-id $APPLE_ID --team-id $APPLE_TEAM_ID --password $APPLE_APP_SPECIFIC_PASSWORD --wait
|
||||
xcrun stapler staple $pkg_name
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user