Signing mac installer (pkgmaker)

让人想犯罪 __ 提交于 2019-12-04 15:11:45

You can sign only flat packages. Your package has extension .mpkg which I believe is the older bundle format. Make sure you are using flat packages if you want to sign them.

You can sign .mpkg packages but you must sign it with the Developer ID Application cert and not the Developer ID Installer cert.

When you sign the .mpkg you get a number a warnings that the inner packages must be signed but the signing seems to be valid with or without the inner .pkg signed.

I have tested that modifying an internal .pkg causes the .mpkg to fail the Gatekeeper check

So for the each internal .pkg files you should:

sudo productsign --sign "<Developer ID Installer: Cert>" "<source.mpkg>/Contents/Packages/<source.pkg>" "<destination.mpkg>/Contents/Packages/<source.pkg>"

for then for the .mpkg do:

sudo productsign --sign "<Developer ID Application: Cert>" "<Source .mpkg>" "<Destination .mpkg>"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!