Skip to content

Commit f8876cf

Browse files
committed
try to fix Windows installer
1 parent d210aeb commit f8876cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/install.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ $EXE_PATH = Join-Path -Path $INSTALL_DIR -ChildPath "$($APP_NAME.CLI).exe"
99

1010
# DETACH PROCESS
1111
if ($args[1] -ne "NA") {
12+
Write-Output "(Detaching)"
13+
Start-Sleep -Seconds 1
1214
# powershell path (pwsh on PS Core, powershell on Windows PS)
1315
$exe = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh" } else { "powershell" }
1416
$script = $PSCommandPath
1517

1618
Start-Process -FilePath $exe -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$script`" _ NA"
1719
# quit parent
20+
Write-Output "(Quitting)"
21+
Start-Sleep -Seconds 1
1822
exit
1923
}
2024

0 commit comments

Comments
 (0)