beast-agent 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.js +18 -12
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -4073,20 +4073,26 @@ function npmSelfUpdate() {
|
|
|
4073
4073
|
" exit 1",
|
|
4074
4074
|
"}",
|
|
4075
4075
|
"L 'npm install tamam, yeniden baslatma'",
|
|
4076
|
-
"$
|
|
4077
|
-
"if ($
|
|
4078
|
-
"
|
|
4079
|
-
"
|
|
4076
|
+
"$prefix = (& $npmCmd prefix -g 2>$null)",
|
|
4077
|
+
"if (-not $prefix) { $prefix = Join-Path $env:APPDATA 'npm' }",
|
|
4078
|
+
"$appDir = Join-Path $prefix 'node_modules\\beast-agent'",
|
|
4079
|
+
"$exe = Join-Path $appDir 'node_modules\\electron\\dist\\electron.exe'",
|
|
4080
|
+
"if (-not (Test-Path $exe)) { $exe = Join-Path $prefix 'node_modules\\electron\\dist\\electron.exe' }",
|
|
4081
|
+
"if (Test-Path $exe) {",
|
|
4082
|
+
" L \"dogrudan electron: $exe\"",
|
|
4083
|
+
" # WindowStyle Hidden KULLANMA: gizli bayragi Chromium miras alir, ilk pencere tray'de kaybolur",
|
|
4084
|
+
" Start-Process -FilePath $exe -ArgumentList \"`\"$appDir`\"\"",
|
|
4080
4085
|
"} else {",
|
|
4081
|
-
" $
|
|
4082
|
-
" if (
|
|
4083
|
-
"
|
|
4084
|
-
"
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4087
|
-
"
|
|
4086
|
+
" $shim = Get-Command 'beast-agent.cmd' -ErrorAction SilentlyContinue",
|
|
4087
|
+
" if ($shim) {",
|
|
4088
|
+
" L \"shim uzerinden: $($shim.Source)\"",
|
|
4089
|
+
" Start-Process -FilePath $shim.Source",
|
|
4090
|
+
" } else {",
|
|
4091
|
+
" L 'HATA: electron.exe ve shim bulunamadi - yeniden baslatma yapilamadi'",
|
|
4092
|
+
" exit 1",
|
|
4093
|
+
" }",
|
|
4088
4094
|
"}",
|
|
4089
|
-
"L '=== self-update bitti ==='",
|
|
4095
|
+
"L '=== self-update bitti ==='",
|
|
4090
4096
|
].join('\r\n');
|
|
4091
4097
|
const psFile = path.join(APP_DIR, 'update-helper.ps1');
|
|
4092
4098
|
fs.writeFileSync(psFile, ps, 'utf8');
|