update build

This commit is contained in:
pascal
2025-11-24 18:24:16 +01:00
parent b24fdf8b09
commit 9c18770159
2 changed files with 10 additions and 5 deletions

View File

@@ -41,8 +41,8 @@ export class DaemonClient {
private protoPath: string; private protoPath: string;
constructor(private address: string) { constructor(private address: string) {
// Path to proto file via symlink: dist/electron/grpc -> ../../../proto/daemon.proto // Path to proto file: dist/electron/grpc/client.js -> ../../proto/daemon.proto
this.protoPath = path.join(__dirname, '../../../proto/daemon.proto'); this.protoPath = path.join(__dirname, '../../proto/daemon.proto');
this.initializeClient(); this.initializeClient();
} }

View File

@@ -9,7 +9,7 @@
"dev": "concurrently -k \"npm run dev:react\" \"npm run dev:electron\"", "dev": "concurrently -k \"npm run dev:react\" \"npm run dev:electron\"",
"dev:react": "vite --port 5173", "dev:react": "vite --port 5173",
"dev:electron": "tsc -p tsconfig.electron.json && electron .", "dev:electron": "tsc -p tsconfig.electron.json && electron .",
"build": "vite build && tsc -p tsconfig.electron.json --noCheck", "build": "vite build && tsc -p tsconfig.electron.json --noCheck && mkdir -p dist/proto && cp -r proto/* dist/proto/",
"build:strict": "tsc && vite build && tsc -p tsconfig.electron.json", "build:strict": "tsc && vite build && tsc -p tsconfig.electron.json",
"build:linux": "npm run build && electron-builder --linux", "build:linux": "npm run build && electron-builder --linux",
"build:all": "npm run build && electron-builder -mwl", "build:all": "npm run build && electron-builder -mwl",
@@ -54,7 +54,12 @@
"output": "release" "output": "release"
}, },
"files": [ "files": [
"dist/**/*" "dist/**/*",
"assets/**/*"
],
"asarUnpack": [
"dist/proto/**/*",
"assets/**/*"
], ],
"linux": { "linux": {
"target": [ "target": [
@@ -62,7 +67,7 @@
"deb" "deb"
], ],
"category": "Network", "category": "Network",
"icon": "assets/icon.png" "icon": "assets/icons"
}, },
"mac": { "mac": {
"target": "dmg", "target": "dmg",