Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add codesigning script for macOS#42912

Open
jschwe wants to merge 1 commit intoservo:mainfrom
jschwe:servo/macos-sign
Open

Add codesigning script for macOS#42912
jschwe wants to merge 1 commit intoservo:mainfrom
jschwe:servo/macos-sign

Conversation

@jschwe
Copy link
Member

@jschwe jschwe commented Feb 27, 2026

This script automates the signing, packaging and notarization of servoshell on macOS.
This is a first step towards: #40031 and #12532. While we could let a maintainer code-sign and upload the signed release, probably this should be integrated into CI, which would require additional work.

This script started out quite simple as part of ./mach package. However, since the script has access to secrets, it shouldn't be part of mach (to minimize the amout of code that needs to be trusted).
We also needed to save state and be able to resume operations, since notarizing can take quite long and the stapling needs to wait until notarization has completed.
Since notarizing can take long (up to a day has been observed during first tests), we save artifacts and the notarization ID, and add a --check-status command that can be used to poll if notarization has been finished.

Testing: Manually testing required. A signed and notarized .dmg artifact has been uploaded to zulip, allowing others to verify the notarization worked.

Signed-off-by: Jonathan Schwender <[email protected]>
@jschwe jschwe marked this pull request as ready for review February 27, 2026 16:08
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants