Build a native desktop timer app with Angular and Electron.
git clone
cd Desktop-Timer-App-Electron
npm install
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
-
Run
npm run electron-buildto build the project -
- Windows (32/64 bit) - macOS (formerly known as OS X) - Linux (x86/x86_64) -
electron-packager <sourcedir> <appname> --platform=<platform> --arch=<arch> [optional flags...]
This will:
-
Find or download the correct release of Electron
-
Use that version of Electron to create a app in
<out>/<appname>-<platform>-<arch>(this can be customized via an optional flag)--platformand--archcan be omitted, in two cases: -
If you specify
--allinstead, bundles for all valid combinations of target platforms/architectures will be created. -
Otherwise, a single bundle for the host platform/architecture will be created.
