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

Use 7-zip to create official release ZIP archives with better compression (and same compatibility) #120

Open
Calinou opened this issue Feb 16, 2020 · 0 comments · May be fixed by godotengine/godot-build-scripts#81
Labels
enhancement topic:releases Issues and PRs related to new engine releases

Comments

@Calinou
Copy link
Member

Calinou commented Feb 16, 2020

7-zip can create fully-compatible ZIP archives that are smaller than the ones created by the reference InfoZIP tool (i.e. the zip command). This is done with the command 7z a -mx9 <folder>.zip <folder>.

For instance, the official 3.2 Linux 64-bit ZIP currently weighs 28.2 MB, but it could be recompressed to weigh only 27.4 MB. The difference isn't huge, but it will likely increase as Godot's binaries keep becoming larger over time. This should also help spare TuxFamily's servers a bit, considering how often Godot is downloaded 🙂

This should help with export templates even more. It might take a while to create optimized ZIPs in this case though, as 7z is quite slow in its maximal compression mode. I still think it's worth doing for stable releases at least (and maybe prereleases if time allows).

Edit: I just did a test with the 3.2 Mono export templates. The ZIP created by 7z is 480.6 MB instead of 490 MB.

Edit 2: On 4.0.alpha10, the 64-bit Linux editor ZIP is 46.8 MB when compressed using the above method instead of 47.9 MB. That's a saving of 1.1 MB 🙂

@Calinou Calinou added the topic:releases Issues and PRs related to new engine releases label May 19, 2020
@Calinou Calinou changed the title Use 7-zip to create official release ZIP archives Use 7-zip to create official release ZIP archives with better compression (and same compatibility) Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement topic:releases Issues and PRs related to new engine releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant