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

Distribute with Warp #307

Open
mottosso opened this issue Oct 15, 2018 · 6 comments
Open

Distribute with Warp #307

mottosso opened this issue Oct 15, 2018 · 6 comments
Labels

Comments

@mottosso
Copy link
Member

mottosso commented Oct 15, 2018

Gave this a go, and is working well. It's a self-extracting compressed binary, which unpacks itself to a local directory on first-run and re-uses that for subsequent runs.

$ pyblish-qml
# ...unpacking...
# start
$ pyblish-qml
# start

The result is single-file distribution and fast execution, even if it's located on a network drive. Updates are made by replacing the single-exe file with a newer version.

@tokejepsen
Copy link
Member

super interesting, not only for pyblish-qml but for distributed pipelines as well.

@mottosso
Copy link
Member Author

Yeah, it's quite simplistic; anything you can put in a folder you can distribute with it. You point it to a folder for zipping, e.g. c:\python36, and the name of an executable inside of it, e.g. python.exe along with arguments, e.g. -m pyblish_qml and it'll hand you a single .exe that takes a little while the first time, but then no more.

Could also work as a more general, shared Python distribution.

//192.168.1.111/mypython36/python.exe

Not sure, but it'd be nice if it also knew when to update the local copy, say if the .exe has been updated.

@tokejepsen
Copy link
Member

Not sure, but it'd be nice if it also knew when to update the local copy, say if the .exe has been updated.

I thought it did update? Here's from the readme:

The extraction process only happens the first time the application is ran, or when the self-contained application binary is updated.

@mottosso
Copy link
Member Author

Then that it pretty slick I think. :)

@tokejepsen
Copy link
Member

Could be cool if it queried a remote location for updates to the exe as well. That way you could release binaries to GitHub and your distributed users would get the updates.

@mottosso
Copy link
Member Author

Sounds like a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants