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

build-rust.ps1: skip the test tools that wacos-ferramentas no longer builds

Eternity070628675e671be438
diff --git a/rust-teste/build-rust.ps1 b/rust-teste/build-rust.ps1
index 523de18..f2164e6 100644
--- a/rust-teste/build-rust.ps1
+++ b/rust-teste/build-rust.ps1
@@ -76,7 +76,10 @@ Copy-Item (Join-Path $t32 'DialogoMac.dll') (Join-Path $bin 'DialogoMac32.dll')
# ferramentas de teste à parte (não vão para a instalação)
$ferr = Join-Path $dist 'ferramentas'
New-Item -ItemType Directory -Force $ferr | Out-Null
-foreach ($n in 'DialogoTeste', 'BandejaTeste', 'MenuTeste', 'perfil', 'svg2png') { Copy-Item (Join-Path $t64 "$n.exe") $ferr -Force }
+foreach ($n in 'DialogoTeste', 'BandejaTeste', 'MenuTeste', 'perfil', 'svg2png') {
+ $e = Join-Path $t64 "$n.exe"
+ if (Test-Path $e) { Copy-Item $e $ferr -Force } else { Write-Warning "sem $n.exe (wacos-ferramentas fora do build)" }
+}
# a carregadora do gancho fica a do C++ (determinística, ver memória dll-janelas-build): só é copiada se existir
# (num worktree o bin\ fica só no checkout principal: procura nele também)
$principal = Split-Path (git -C $repo rev-parse --path-format=absolute --git-common-dir) -Parent