dunglas / frankenphp

🧟 The modern PHP app server
https://frankenphp.dev
MIT License
6.88k stars 235 forks source link

Question: why app.tar not getting zipped? #834

Closed gonejack closed 5 months ago

gonejack commented 5 months ago

https://github.com/dunglas/frankenphp/blob/0b4a427cac1da044518ada44345bbafd98a0bc04/build-static.sh#L226

Php project could be up to hundred megabytes in my experiences expecially using composer.

It look like tar -acf app.tar.gz -C "${EMBED}" . would save a lot of space.

dunglas commented 5 months ago

@gonejack The whole binary (including the PHP files if I recall correctly) is already compressed using upx. Compressing the PHP files before compressing the binary will likely increase the final size.

We may add support for compression for Mac binaries however, as upx doesn't support Apple Silicon yet.

gonejack commented 5 months ago

@dunglas Thank you for your reply.