Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.8k stars 444 forks source link

Add codesign for macos build #7971

Closed xoriole closed 5 months ago

xoriole commented 5 months ago

This PR adds code signing for MacOS build.

The sign message which includes the Signer's Identity is to be passed via environment variable during the build process.

The final dmg created after code signing works well on earlier version of MacOS without issues. However, for the newer version of the macos, to pass through the gatekeeper, the DMG and included executables needs to be notarized using notary tool. At the moment, the notarization is not passing yet.

The fix for notarization is outside the scope of this PR. That will be addressed as part of the build script pipeline in Jenkins as notarization can take up to 30 mins to complete and requires setting up key profiles.