Electron is a good choice to build cross platform desktop apps with JavaScript, HTML, and CSS. In this article, I will guide you to install all necessary packages, get electron-quick-start running and create the dist package.
node.js
First, you need install node.js. The v6.9.1 is used in my case.
1 | $ node --version |
Fetch code
1 | git clone https://github.com/electron/electron-quick-start.git |
Install packages and run
1 | cd electron-quick-start |
In China, the installation process may suspend due to the problem of downloading electron binary package (version 1.7.10 in my case), even with taobao registry enabled. One possible workaround is fetching the package directly and put in the cache directory, so the script install.js can uncompress the package without downloading.
1 | cd ~/.electron |
Create the dist package
1 | electron-packager electron-quick-start/ quick-start |