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

@@ -1,12 +1,17 @@
{
"name": "website",
"version": "0.0.0",
"main": "electron/main.cjs",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:electron": "ng build --base-href ./",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"electron": "npm run build:electron && electron .",
"electron:dev": "ELECTRON_RENDERER_URL=http://localhost:4200 electron .",
"electron:pack": "npm run build:electron && electron-builder --linux"
},
"private": true,
"packageManager": "npm@11.12.1",
@@ -24,9 +29,29 @@
"@angular/build": "^21.2.6",
"@angular/cli": "^21.2.6",
"@angular/compiler-cli": "^21.2.0",
"electron": "^36.4.0",
"electron-builder": "^24.13.3",
"jsdom": "^28.0.0",
"prettier": "^3.8.1",
"typescript": "~5.9.2",
"vitest": "^4.0.8"
},
"build": {
"appId": "com.kaintim.website",
"productName": "Website",
"directories": {
"output": "release"
},
"files": [
"dist/website/browser/**/*",
"electron/**/*",
"package.json"
],
"linux": {
"target": [
"AppImage"
],
"category": "Utility"
}
}
}
}