-
Notifications
You must be signed in to change notification settings - Fork 53
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
Investigate using pyinstaller to create one-click installer #504
Comments
@jzohrab I'm gonna take a crack at this. |
Super @cblanken , thank you! Any progress is good. |
@jzohrab Hey, probably won't be able to work much more on this at the moment. Got kinda busy. Here are my notes so far though in case anyone wants to pick up where I left off. Lute PyinstallerBuilds will need to be made on early versions as possible of the target Focus should probably be on Windows and Mac builds as anyone using Linux is Forward compatibility
One-file or One-folderPyinstaller can bundle Lute into either a single folder (one-folder) or single executable (one-file). The one-file option will setup a temporary directory to operate on files. It would probably be best to specify the the runtime temp dir, otherwise you run into the risk of the operating system periodically deleting Lute files from the system created temp directory. The Adding Lute data to the buildOne option is to copy the entire Normally, it should be possible to only copy over the GUI installer?I'm not sure this is possible without packaging system dependent packages like Simple build
pyinstaller \
--console \
--onefile \
--add-data "lute:lute" \
--runtime-tmpdir "mylute" \
lute/main.py This build script worked fine for me on Linux, but it could definitely be optimized to not require adding the entire lute directory and there may need to be some adjustments for Windows and Mac builds. |
Hi @cblanken -- thank you very much for your time and the great write-up, really appreciated! It's a bigger problem to solve than it first seems. I think I'll reach out to the team at Anki and see if they can offer additional guidance -- but in the meantime, I'll leave this in the backlog. Cheers! |
This is a tough one, perhaps :-) but it could be extremely useful for users who want to try Lute but are overwhelmed with the setup!
I've never used pyinstaller (or alternatives), so I don't know what's involved. But I feel off the bat that there are a few things that would need to be handled/investigated:
pip
installsThe text was updated successfully, but these errors were encountered: