universal
universal copied to clipboard
How to package the .app returned by universal into pkg for distribution?
Please can somebody help, I am new to this.?
Please can somebody help, I am new to this.?
# get it by run `security find-identity -v -p codesigning`
signID='Developer ID Installer xxx'
sudo productbuild --component 'xxx.app' /Applications --sign "$signID" --product 'xxx.app/Contents/Info.plist' build.pkg
echo "productbuild success"
sudo productsign --sign "$signID" build.pkg success.pkg
echo "productsign success"
Hi @LeaderBoy
I am trying your method, but face the signID problem, do you know how to avoid it or other workaround, thank you!
https://github.com/electron-userland/electron-builder/issues/6523
Would this not work? https://github.com/electron/osx-sign?tab=readme-ov-file#electron-osx-flat