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: rename -Tag to -TagFixa (PowerShell variables ignore case, so $tag overwrote it and build-64.1 went out as build-65)

Eternity07062838be63a143ab
diff --git a/tools/publicar.ps1 b/tools/publicar.ps1
index eededd4..2100432 100644
--- a/tools/publicar.ps1
+++ b/tools/publicar.ps1
@@ -13,7 +13,7 @@
# (rust-teste\build-rust.ps1 -Unica -Versao build-N, mesma pasta Programs\WacOS e mesmo atualizador do C++) e o
# pacote leva os programas dela no lugar dos do C++ (a WacOSGancho.dll continua a do C++). Sem WacOS-Rust.zip e sem
# WacOSTroca: não há mais duas edições. O atualizador de quem tem o C++ baixa este zip e troca os programas no lugar.
-param([string]$Notas = '', [string]$RustDist = '', [switch]$SoRust, [string]$Tag = '')
+param([string]$Notas = '', [string]$RustDist = '', [switch]$SoRust, [string]$TagFixa = '')
$ErrorActionPreference = 'Stop'
$root = Split-Path $PSScriptRoot -Parent
Set-Location $root
@@ -26,7 +26,7 @@ New-Item -ItemType Directory -Force (Join-Path $root 'dist') | Out-Null
# o maior build-N + 1 (não a contagem: as builds 1 a 16 foram apagadas em 20/11/2026, na troca de licença)
$n = (@(gh release list -R $repo --limit 1000 --json tagName --jq '.[].tagName' | Where-Object { $_ -match '^build-(\d+)$' } | ForEach-Object { [int]($_ -replace '^build-', '') }) + @(17) | Measure-Object -Maximum).Maximum + 1
$tag = "build-$n"
-if ($Tag) { $tag = $Tag } # correção na mesma build (ex.: build-64.1): o atualizador compara o nome inteiro
+if ($TagFixa) { $tag = $TagFixa } # (o PowerShell não diferencia $Tag de $tag: o nome tem de ser outro) # correção na mesma build (ex.: build-64.1): o atualizador compara o nome inteiro
git push -q origin main 2>&1 | Out-Null
$sha = (git rev-parse HEAD).Trim()
L "versão: $tag ($sha)"