Open tryexceptpass opened 8 years ago
Have you seen this?
https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html
I was thinking about something along those lines. I need to make time to go over your link in more detail. Thanks a lot for the info.
I've decided to do this directly with the Chromium Embedded Framework. Already have a working prototype in MacOS using the adding-embedded-chromium branch, where instead of spawning the default browser I launch a version of the cefsimple
browser. This will remove all browser-like window elements (address bar, navigation buttons, etc.), making it look like a real application. Some testing appreciated.
I don't want to get into talking directly to CEF through C bindings though, so everything will stay with websockets for greater flexibility.
Now I just need to find a good way of generating cross-platform installable binaries. I know these exist, just haven't made time to research my options yet.
Does it make sense and is it possible to automatically generate a packaged electron app from our stuff? The app would still require a python backend running somewhere, which does not have to be the client (due to websockets), but it should be possible to wrap up the html and js into an app that's made installable through the electron packaging system.
More investigation needed.