Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing apps for Chrome OS with Electron

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?

like image 519
calvillo Avatar asked Aug 28 '17 19:08

calvillo


People also ask

Is Chrome built using Electron?

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.

Can you develop apps on a Chromebook?

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.


2 Answers

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.

like image 96
Daniel Herr Avatar answered Oct 22 '22 02:10

Daniel Herr


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.

like image 30
mrrobot1999 Avatar answered Oct 22 '22 01:10

mrrobot1999