rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

[FEATURE REQUEST] Code Signing? #46

Closed LeeThompson closed 3 years ago

LeeThompson commented 3 years ago

I'm sure this is impossible but it would be awesome if the compiled product could have a code signature added.

rschupp commented 3 years ago

I'm sure this is impossible but it would be awesome if the compiled product could have a code signature added.

It's possible and has apparently been done at least on MacOS, search for "signing" on archives of the par@perl.org mailing list, e.g. https://www.mail-archive.com/par@perl.org/ However, the signing process itself is definitely not a goal for PAR::Packer, only removing technical hurdles or adding a few lines of documentation (as was the case for MacOS).

fantinuoli commented 3 years ago

Yes, it is possible and easy to do. You can codesign it as a part of an .app bundle, or codesign it directly. To codesign is as part of an .app bundle: