tryexceptpass / sofi

an OS agnostic UI module for Python
MIT License
387 stars 49 forks source link

Support Generating a Standalone App #67

Open tryexceptpass opened 8 years ago

tryexceptpass commented 8 years ago

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.

thomasantony commented 8 years ago

Have you seen this?

https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html

tryexceptpass commented 8 years ago

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.

tryexceptpass commented 7 years ago

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.