diff --git a/client/ui-electron/electron/grpc/client.ts b/client/ui-electron/electron/grpc/client.ts index 48f703332..825f594a5 100644 --- a/client/ui-electron/electron/grpc/client.ts +++ b/client/ui-electron/electron/grpc/client.ts @@ -41,8 +41,8 @@ export class DaemonClient { private protoPath: string; constructor(private address: string) { - // Path to proto file via symlink: dist/electron/grpc -> ../../../proto/daemon.proto - this.protoPath = path.join(__dirname, '../../../proto/daemon.proto'); + // Path to proto file: dist/electron/grpc/client.js -> ../../proto/daemon.proto + this.protoPath = path.join(__dirname, '../../proto/daemon.proto'); this.initializeClient(); } diff --git a/client/ui-electron/package.json b/client/ui-electron/package.json index 990cc8470..5a58d4ba7 100644 --- a/client/ui-electron/package.json +++ b/client/ui-electron/package.json @@ -9,7 +9,7 @@ "dev": "concurrently -k \"npm run dev:react\" \"npm run dev:electron\"", "dev:react": "vite --port 5173", "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:linux": "npm run build && electron-builder --linux", "build:all": "npm run build && electron-builder -mwl", @@ -54,7 +54,12 @@ "output": "release" }, "files": [ - "dist/**/*" + "dist/**/*", + "assets/**/*" + ], + "asarUnpack": [ + "dist/proto/**/*", + "assets/**/*" ], "linux": { "target": [ @@ -62,7 +67,7 @@ "deb" ], "category": "Network", - "icon": "assets/icon.png" + "icon": "assets/icons" }, "mac": { "target": "dmg",