This project was generated with Angular CLI version 1.2.7.
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 ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
You can edit source code and see the changes if you refresh the page cmd+r
- Build the application:
npm run build
- Open another terminal and run electron app:
npm run electron:hmr
-
Build the application:
npm run build:prod
-
Run electron app:
npm run electron:prod
-
Get a signing certificate.
-
Place
Before package the application, you should first set CSC_LINK
and CSC_KEY_PASSWORD
for code signing. Please refer to this page
For Windows: npm run release:win
For Mac: npm run release:mac
For Linux: npm run release:linux
To build for all platforms: npm run release:all
To clean the built packages: npm run clean
Install http-server
npm module globally: npm install -g http-server
- In
src/electron/package.json
, increase the version number. - Package the application:
npm run release:all
- Server the
release
folder:http-server release
- In browser, go to
localhost:8080
and download the app. - Install the application.
- Repeat from step 1 & 2 in other terminal.
- Open the installed app.
Note: When you open a new terminal, please make sure the CSC_LINK
and CSC_KEY_PASSWORD
variables are set correctly in order to avoid code signing errors & warnings.