On 4/23/2009 8:45 AM, Krzysztof Jakubczyk wrote: > Hi, > I need my python application to get Vista Certificate. One of > requirements is to sign all executable files with a code signing > certificate. The problem is that when I sign executable created with > pyInstaller - it no longer runs. The error I get: > > Cannot open archive: <app>.pkg > <app>.exe has bad magic! > > Is there a solution? > > Ps. > it seems to be an old problem: > http://www.mail-archive.com/[email protected]/msg00504.html
The fastest workaround is to hand-edit your spec file and add "append_pkg=False" as keyword argument in the call to the EXE() function. This will create a different layout. Instead of having a single executable with the big archive of data appended to it, you will have a small executable (eg: foobar.exe) and a package on the side (foobar.pkg). This would make signing work. This solution works in both one-file and one-dir mode; thought it turns the former into... "two-files" mode :) -- Giovanni Bajo Develer S.r.l. http://www.develer.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
