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

Reduce executable size in windows #10

Open
pubudu-ranasinghe opened this issue Jul 29, 2019 · 0 comments
Open

Reduce executable size in windows #10

pubudu-ranasinghe opened this issue Jul 29, 2019 · 0 comments
Labels
Projects

Comments

@pubudu-ranasinghe
Copy link
Owner

pubudu-ranasinghe commented Jul 29, 2019

The current freeze output is about 120MB in windows. This can be reduced significantly by manually removing the unnecessary files bundled with pyinstaller. So we need to write a post build script that will delete the files from target directory.

The list of unnecessary files can be identified later and would ideally be defined in build/settings/{platform}.json or in separate text files.

Refer to this issue on how this can be done.

Need to do some trial and error to identify the unnessary files.
Identified for now

  • Almost everything in target\Turnip\PyQt5\Qt\bin
  • Unused image formats like webp in Turnip\PyQt5\Qt\plugins\imageformats
  • Languages Turnip\PyQt5\Qt\translations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
V1 Release
  
To do
Development

No branches or pull requests

1 participant