feat: integrate desktop runtime and root workspace updates
This commit is contained in:
1 parent
f5a4a9ee97
commit
168623c459
93 files changed
+19540
-1208
No files matched your search
+13
@@ -2,11 +2,23 @@
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\Documents\Github\ai-backend-studio\tauri-app\node_modules\loose-envify\node_modules;D:\Documents\Github\ai-backend-studio\tauri-app\node_modules;D:\Documents\Github\ai-backend-studio\tauri-app\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/Documents/Github/ai-backend-studio/tauri-app/node_modules/loose-envify/node_modules:/mnt/d/Documents/Github/ai-backend-studio/tauri-app/node_modules:/mnt/d/Documents/Github/ai-backend-studio/tauri-app/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
@@ -25,4 +37,5 @@ if (Test-Path "$basedir/node$exe") {
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
||||
Reference in new issue
Block a user