sofi icon indicating copy to clipboard operation
sofi copied to clipboard

Support Generating a Standalone App

Open tryexceptpass opened this issue 7 years ago • 3 comments

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.

tryexceptpass avatar Aug 23 '16 01:08 tryexceptpass

Have you seen this?

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

thomasantony avatar Aug 29 '16 23:08 thomasantony

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 avatar Aug 30 '16 16:08 tryexceptpass

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.

tryexceptpass avatar Jan 23 '17 05:01 tryexceptpass