davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
327 stars 63 forks source link

Investigate Electron for building an LCL desktop app #278

Open rumblesan opened 7 years ago

rumblesan commented 7 years ago

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

stretchyboy commented 7 years ago

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

davidedc commented 7 years ago

@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.

stretchyboy commented 7 years ago

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 notifications@github.com 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