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

publicar.ps1: take the notes from dist/notas-manual.md when it exists

Eternity070628b00efd1e895c
diff --git a/tools/publicar.ps1 b/tools/publicar.ps1
index 233584f..56749fb 100644
--- a/tools/publicar.ps1
+++ b/tools/publicar.ps1
@@ -74,6 +74,8 @@ if ($codigoEmp -ne 0) { L 'ERRO: o empacotar.ps1 falhou'; exit 1 } # senão sub
$zip = Get-ChildItem (Join-Path $root 'dist') -Filter 'WacOS-*.zip' | Sort-Object LastWriteTime -Descending | Select-Object -First 1
if (-not $zip) { L 'ERRO: o pacote não foi gerado'; exit 1 }
+$manualNotas = Join-Path $root 'dist\notas-manual.md'
+if (-not $Notas -and (Test-Path $manualNotas)) { $Notas = (Get-Content -Raw $manualNotas).Trim() } # o repositório novo ainda não tem release para o git log montar as notas
if (-not $Notas) {
$antes = gh release list -R $repo --limit 1 --json tagName --jq '.[0].tagName'
$Notas = if ($antes) { (git log --pretty=format:'- %s' "$antes..HEAD") -join "`n" } else { '- New version' }