You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JGantts/Storyteller#1 uses a 200 mb dependency in addition to electron. They could use child_process or some sugar library to make this easier if pyc2e can be frozen. Python should be 15-20 mb, an order of magnitude less.
Freezing will need linux, windows, and mac executable versions.
pushfoo
changed the title
Explore freezing this as a temporary fix for story-teller's 200mb dependency
Add instructions for how to freeze + needed changes to support it
May 13, 2020
pushfoo
changed the title
Add instructions for how to freeze + needed changes to support it
Add instructions for how to freeze + needed changes to support it on Windows
May 13, 2020
Preliminary freezing with pyinstaller seems to work. The caveat is that it doesn't like to run from a virtualenv in a mounted folder in virtualbox. Creating the virtualenv in the windows user's documents folder works as a fix. Afterward, runningpyinstaller D:\pyc2e\__main__.py works but creates a very messy folder.
The result appears to be ~12mb at time of writing.
Do not give administrator privileges to a one-file executable (setuid root in Unix/Linux, or the “Run this program as an administrator” property in Windows 7). There is an unlikely but not impossible way in which a malicious attacker could corrupt one of the shared libraries in the temp folder while the bootloader is preparing it. Distribute a privileged program in one-folder mode instead.
Many users might run this admin mode. Not sure what the best way to proceed is. Need to find out how electron packages dependencies and subcomponents, and compare to cx_Freeze and other tools.
The big advantage of pyinstaller right now is that it doesn't require significant understanding of the framework. pyinstaller path\to\script.py works, even across drive boundaries.
JGantts/Storyteller#1 uses a 200 mb dependency in addition to electron. They could use child_process or some sugar library to make this easier if pyc2e can be frozen. Python should be 15-20 mb, an order of magnitude less.
Try pyinstaller if cx_Freeze doesn't work, it doesn't restrict the things it bundles to the GPL .
The text was updated successfully, but these errors were encountered: