Skip to content

armgit / WacOS

Public Imported from GitHub
0

A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.

Rust

Issue #102: option to install updates automatically

Eternity0706288e1f88e1c0df
diff --git a/tools/atualizar-github.ps1 b/tools/atualizar-github.ps1
index b92843e..262bc3a 100644
--- a/tools/atualizar-github.ps1
+++ b/tools/atualizar-github.ps1
@@ -16,7 +16,7 @@ function Grava { if ($Saida) { Set-Content -Encoding utf8 $Saida $out } }
function Fim($msg, $espera = 4) { if ($Verificar) { Grava; exit }; Write-Host $msg; Start-Sleep $espera; exit }
function Erro($msg) { $out.Add("erro=$msg"); Fim $msg 8 }
-if (-not $Verificar) { $host.UI.RawUI.WindowTitle = 'WacOS - Update' }
+if (-not $Verificar) { try { $host.UI.RawUI.WindowTitle = 'WacOS - Update' } catch { } } # sem console na instalação automática em segundo plano
$atual = ''; $atualSha = ''
$vf = Join-Path $Bin 'versao.txt'
if (Test-Path $vf) { $v = @(Get-Content $vf); if ($v.Count -ge 1) { $atual = $v[0].Trim() }; if ($v.Count -ge 2) { $atualSha = $v[1].Trim() } }