livecodelab icon indicating copy to clipboard operation
livecodelab copied to clipboard

Investigate Electron for building an LCL desktop app

Open rumblesan opened this issue 8 years ago • 3 comments

I'm starting to think about the "pro" version of LCL, and wether it might best be done as a desktop app.

http://electron.atom.io/ looks like a good way to reuse the vast majority of the current codebase, but I currently have no idea what it's like for canvas/3js stuff. Need to give it a look

rumblesan avatar Nov 21 '16 12:11 rumblesan

When creating the browserwindow (in main.js usually) you need to pass in webgl:true in the options.

https://github.com/electron/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions

stretchyboy avatar Dec 20 '16 08:12 stretchyboy

@stretchyboy many thanks! Would it be possible to have a separate build (and maybe test?) process for the Electron install? (Also, could you please update the installation docs here https://github.com/davidedc/livecodelab/blob/master/docs/how-tos/build.md ?)

One last thing - could somebody look into offline mode and a Chrome app (for chromebooks)? Millions of Chromebooks are being sold in education and outside, in fact most of the videos on youtube regarding LiveCodeLab have been made on a chromebook... I think a nice packaging on that platform would be really great...

Opening two separate issues.

davidedc avatar Dec 21 '16 09:12 davidedc

Erm build and test are identical (at the moment) but i can see if I can rig up a packager and build binaries . And there is a chromeOS app flag you can add to make it friendly there. Not sure about how to package as a chromeOS app but will look into it as its obviously a thing.

On 21 December 2016 at 09:21, Davide Della Casa [email protected] wrote:

@stretchyboy https://github.com/stretchyboy many thanks! Would it be possible to have a separate build (and maybe test?) process for the Electron install? (Also, could you please update the installation docs here https://github.com/davidedc/livecodelab/blob/master/docs/how-tos/build.md ?)

One last thing - could somebody look into offline mode and a Chrome app (for chromebooks)? Millions of Chromebooks are being sold in education and outside, in fact most of the videos on youtube regarding LiveCodeLab have been made on a chromebook... I think a nice packaging on that platform would be really great...

Opening two separate issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidedc/livecodelab/issues/278#issuecomment-268475094, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN_znoqbTrFGr8rQRN3JWuRTDOyjvT1ks5rKO-tgaJpZM4K4H87 .

-- Regards, Martyn

https://twitter.com/#!/stretchyboy

stretchyboy avatar Dec 21 '16 10:12 stretchyboy