Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression of binary with UPX failed #523

Open
davidnurdin opened this issue Sep 11, 2024 · 1 comment
Open

Compression of binary with UPX failed #523

davidnurdin opened this issue Sep 11, 2024 · 1 comment

Comments

@davidnurdin
Copy link

Hi,
Do you have an idea why ?

image

Fatal error: Uncaught PharException: phar "/home/david/poc/castorSampleDoctrine/my-app.linux.x86_64" has a broken signature in /home/david/poc/castorSampleDoctrine/my-app.linux.x86_64:11
Stack trace:
#0 /home/david/poc/castorSampleDoctrine/my-app.linux.x86_64(11): Phar::mapPhar('alias.phar')
#1 {main}
thrown in /home/david/poc/castorSampleDoctrine/my-app.linux.x86_64 on line 11

@tigitz
Copy link
Contributor

tigitz commented Sep 12, 2024

Have you tested your binary before UPX compression? The SPC library Castor uses has built-in UPX support, though it's not currently utilized.

To implement UPX, consider submitting a PR that adds a flag to Castor's compile command. This should execute bin/spc install-pkg upx for installation and run the SPC command with --with-upx-pack.

Remember to include a warning that the UPX installation only works on Linux and Windows, as per SPC documentation. This would ensure a more robust implementation of UPX compression in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants