This is a minimal Electron application based on the Quick Start Guide within the Electron documentation. Weather API is provided by OpenWeatherMap.
- HTML
- Bootstrap
- Weather Icons
- Javascript
In order to build and package your app, we need the electron-packager module:
npm install electron-packager -g
To build an application for a platform you'll need to execute the following command in the Node.js command prompt:
electron-packager <sourcedir> <appname> --platform=<platform> --arch=<arch>
The possible values for the platform option are:
Windows: win32
MacOS: darwin or mas
Linux: linux
And the possible values for the arch option are:
32 Bits OS: x86
64 Bits OS: x64
armv7l (only for Linux)
Example:
electron-packager . --platform=linux --arch=x64
electron-packager . --all