Add electron

This commit is contained in:
2026-04-16 08:04:32 +02:00
parent 13a6c24cd1
commit 602348c934
6 changed files with 4100 additions and 3 deletions

View File

@@ -36,6 +36,40 @@ ng build
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
## Electron desktop app
This project can also run as an Electron desktop app using the same Angular frontend.
### Run Electron with a production build
```bash
npm run electron
```
This command runs `npm run build:electron` internally to emit a file-based build for Electron.
### Run Electron against the Angular dev server
Start Angular in one terminal:
```bash
npm start
```
Then start Electron in another terminal:
```bash
npm run electron:dev
```
### Package a Linux desktop build
```bash
npm run electron:pack
```
The packaged app is created in the `release/` directory.
## Running unit tests
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command: