-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Build Datasette with PyInstaller and bundle it into an installable Electron app #7
Comments
This looks relevant: https://github.com/samuelmeuli/action-electron-builder |
Once PyInstaller has built a |
I figured out how to build Datasette using PyInstaller here: simonw/datasette#93 (comment) |
Also useful: I mostly figured out how to sign the Datasette executable in simonw/datasette#1171 |
Needs to bundle the new |
Bundling the Datasette binary looks a little complicated, this is the best answer I have found so far: https://stackoverflow.com/questions/33152533/bundling-precompiled-binary-into-electron-app |
Another option worth considering, if I can't get https://www.electronjs.org/docs/tutorial/application-distribution This involves using a precompiled version of Electron and dropping the necessary files into the right places. It may be easier to get the |
I'm going to break this into smaller tasks. |
I'm not sure what the exact issues experienced using PyInstaller are, but hoping this helps in some way: Firstly, you'll need
For signing and notarizing, it seems that the following needs to be set accordingly: See the electron-builder for the rest of the config that can and/or should be set. Next,
Note that in the script, around the 5th line, Finally, the
Not sure if that helps in any way, but hopefully gets you somewhere... |
Thanks very much, that looks really useful! |
I'm going with an alternative approach described in #25 - I'll re-open this issue if I decide to switch back to using PyInstaller. |
No description provided.
The text was updated successfully, but these errors were encountered: