I have to develop an app with Windows, MacOS and Chrome OS support – at the very least. Chrome OS is an important requirement because this app is intended to be used in schools – where Chromebooks are a kind of a big deal. As you may know, Chrome apps are being deprecated on Windows, MacOS and Linux, so that leaves us with two choices for web-based "native" apps: Electron and NW.js.
Since I'm developing this app from the ground up, and not converting any existing web code, I feel inclined to choose Electron for this particular project. However, I can't find any reliable / complete / concrete answers regarding if Electron may be used for developing Chrome OS apps. I found this release note which states:
Electron now provides builds for Linux on ARMv7. It runs on popular platforms like Chromebook and Raspberry Pi 2.
However, officially, Electron only supports Windows, MacOS and Linux, which leads me to think that this Chromebook support might be somewhat limited, which, in turn, leads me to think that NW.js might be a better choice for this project.
My concrete questions are: Has anybody successfully created a Chrome OS app with Electron? Are any of these apps easily installable by regular users? (12 year-old kids) Or do they require some kind of Linux-like hack to get them running?
Under the hood, Electron is powered by the Chromium rendering engine and Node. js. Chromium is the open-source part of Google's Chrome browser.
Here's a running list of apps from the Chrome Web Store that can help you develop on your Chromebook or Chromium OS device: Chrome Dev Editor (Developer Preview) - Editor for building Web Apps and Chrome Apps, in JavaScript or Dart. CDE also supports Git and Polymer development.
You must use Chrome Apps for software on Chrome OS. Also, Google has not announced any intention to remove Chrome Apps from Chrome OS. You will need NW.js or Electron on Windows, Linux, and Mac.
However, this does not require completely separate codebases. NW.js has native support for Chrome Apps, and there is a partial polyfill for Electron.
There are some differences you need to account for, such as the lack of autoupdating and installation from the Chrome Web Store for NW.js/Electron.
Well now Google allows users to install Linux applications. So if you want to target Chrome OS you can start by building for Linux which you can do with Electron.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With