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

Publish: attach the AuthUX source as .tar.gz so the updater can't pick it as the package

Eternity070628302316173af9
diff --git a/tools/publicar.ps1 b/tools/publicar.ps1
index f6417a4..eb685a1 100644
--- a/tools/publicar.ps1
+++ b/tools/publicar.ps1
@@ -76,7 +76,8 @@ $nf = Join-Path $root 'dist\notas.md'
Set-Content -Encoding utf8 $nf $Notas
$assets = @($zip.FullName)
# AuthUX (experimental, GPL-3.0): o código-fonte dele vai junto da release que leva a DLL (exigência da licença)
-$fonteAuthUX = Get-ChildItem (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'AuthUX') -Filter 'AuthUX-source*.zip' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1
+# (em .tar.gz, não .zip: o atualizador do WacOS baixa o primeiro .zip da release e pegaria o código no lugar do pacote)
+$fonteAuthUX = Get-ChildItem (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'AuthUX') -Filter 'AuthUX-source*.tar.gz' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1
if ($fonteAuthUX) { $assets += $fonteAuthUX.FullName; L "AuthUX: código-fonte anexado ($($fonteAuthUX.Name))" }
elseif (Test-Path (Join-Path $root 'dist\WacOS\tools\authux')) { L 'ERRO: o pacote leva o AuthUX mas falta o zip do código-fonte (GPL-3.0)'; exit 1 }
if ($rustZip) { $assets += $rustZip.FullName } # o WacOSTroca --instalar procura WacOS-Rust*.zip na release mais nova