mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
update build
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user