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-build
to 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)--platform
and--arch
can be omitted, in two cases: -
If you specify
--all
instead, bundles for all valid combinations of target platforms/architectures will be created. -
Otherwise, a single bundle for the host platform/architecture will be created.