universal icon indicating copy to clipboard operation
universal copied to clipboard

How to package the .app returned by universal into pkg for distribution?

Open kanishk-zaanu opened this issue 3 years ago • 3 comments

Please can somebody help, I am new to this.?

kanishk-zaanu avatar Feb 09 '22 06:02 kanishk-zaanu

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"

LeaderBoy avatar Apr 15 '22 13:04 LeaderBoy

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

davidsquarev avatar Nov 10 '23 02:11 davidsquarev

Would this not work? https://github.com/electron/osx-sign?tab=readme-ov-file#electron-osx-flat

erickzhao avatar Jun 13 '24 16:06 erickzhao