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

Updating OSX codesign fix util with fix for automatically added ad-ho… #56

Closed plk closed 2 years ago

plk commented 2 years ago

This is needed to allow the codesign fix utility to work on OSX12+ OSX12 automatically adds an ad-hoc signature to the pp binary which makes it impossible to either sign properly or to even run this fix tool to allow it to be signed. This update first removes the signature and then corrects the Mach-O headers to allow the binary to be signed properly.

Note that on OSX12, once this utility has run on a pp binary, it won't run any more (without presumably disabling Gatekeeper) as it has no signature.

rschupp commented 2 years ago

Thanks!