Lesson 15 of 28
javascriptCode Signing – macOS & Windows
9 mins
Course progress54%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 15 of 28
javascript9 mins
Keep these ideas in mind as you work through the lesson.
codesign --deep --force --options runtime --entitlements entitlements.plist \
--sign "Developer ID Application: Your Name (TEAMID)" MyApp.app
xcrun altool (or notarytool in newer Xcode):xcrun notarytool submit MyApp.app --apple-id YOUR_ID --password APP_SPECIFIC_PASSWORD --team-id TEAMID
xcrun stapler staple MyApp.app
signtool:signtool sign /f cert.pfx /p YOUR_PASSWORD /tr http://timestamp.digicert.com /td sha256 /fd sha256 dist/MyApp Setup.exe
signtool verify /pa /v dist/MyApp Setup.exe
Both platforms require the signature to be embedded before creating the installer; electron-builder can run the signing step automatically if you provide the appropriate config.