npm -g install electron-prebuilt
git clone https://github.com/pramendra/todo.git
electron todo
npm i electron-packager -g
// build for window and macOS
// electron-packager ./todo todo —platform=darwin,win32 —arch=x64 —version=1.6.8 —overwrite
// build for macOS
electron-packager ./todo todo —platform=darwin —arch=x64 —version=1.6.8 —overwrite
open todo-darwin-x64/todo
https://github.com/electron/electron/releases
mkdir todo
cd todo
npm init -y
// update package.json
// index.js to main.js
npm install -g asar
asar pack ./todo ./todo.asar
asar todo.asar
electron todo.asar