Skip to content

Commit 370e286

Browse files
committed
fix: remove windows console spam
1 parent 6dd8765 commit 370e286

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

install.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ Step "Creating shortcuts"
337337
New-Shortcuts $exe $iconFile
338338

339339
Step "Launching Slick"
340+
$prevNoAttach = $env:ELECTRON_NO_ATTACH_CONSOLE
341+
$env:ELECTRON_NO_ATTACH_CONSOLE = '1'
340342
Start-Process $exe
343+
$env:ELECTRON_NO_ATTACH_CONSOLE = $prevNoAttach
341344

342345
Write-Host ""
343346
Write-Host "Yippee! " -ForegroundColor Green -NoNewline

scripts/byoe/updater.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ function create({ version, build, profile }) {
401401
'while (Get-Process -Id $ProcId -ErrorAction SilentlyContinue) { Start-Sleep -Milliseconds 200 }',
402402
'Start-Sleep -Milliseconds 500',
403403
'robocopy $Stage $App /MIR /NFL /NDL /NJH /NJS /NP | Out-Null',
404+
'$env:ELECTRON_NO_ATTACH_CONSOLE = "1"',
404405
'Start-Process -FilePath (Join-Path $App "Slick.exe")',
405406
'Remove-Item -Recurse -Force (Split-Path $Stage -Parent)',
406407
];

0 commit comments

Comments
 (0)