fix: Make netbird executable path cross compatible
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ function resourcePath(name: string) {
|
||||
}
|
||||
|
||||
function netbirdClient() {
|
||||
return new NetBirdClient(resourcePath('netbird.exe'));
|
||||
return new NetBirdClient(resourcePath(process.platform === "win32" ? 'netbird.exe' : 'netbird'));
|
||||
}
|
||||
|
||||
function withAutoConnect(status: Record<string, any>) {
|
||||
|
||||
Reference in New Issue
Block a user