A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Package and publish: find the AuthUX folder in Documents even when Windows' Documents is on OneDrive
Eternity070628b2a0f12abc6b
diff --git a/tools/empacotar.ps1 b/tools/empacotar.ps1index d0c9aed..d9e4599 100644--- a/tools/empacotar.ps1+++ b/tools/empacotar.ps1@@ -34,8 +34,8 @@ foreach ($p in $progs) {}# a tela de bloqueio do Mac (AuthUX), experimental: os scripts dela instalam e desinstalam com administrador-if (-not $AuthUX) { $AuthUX = Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'AuthUX\dist-wacos' }-if (Test-Path (Join-Path $AuthUX 'instalar.ps1')) {+if (-not $AuthUX) { $AuthUX = @((Join-Path $env:USERPROFILE 'Documents\AuthUX\dist-wacos'), (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'AuthUX\dist-wacos')) | Where-Object { Test-Path (Join-Path $_ 'instalar.ps1') } | Select-Object -First 1 } # Documentos pode estar no OneDrive+if ($AuthUX -and (Test-Path (Join-Path $AuthUX 'instalar.ps1'))) {New-Item -ItemType Directory -Force "$pkg\tools\authux" | Out-NullCopy-Item "$AuthUX\*" "$pkg\tools\authux\" -Recurse -ForceWrite-Host "AuthUX (experimental): $AuthUX -> tools\authux"diff --git a/tools/publicar.ps1 b/tools/publicar.ps1index d6a8433..053e29e 100644--- a/tools/publicar.ps1+++ b/tools/publicar.ps1@@ -82,7 +82,7 @@ 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)# (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+$fonteAuthUX = Get-ChildItem @((Join-Path $env:USERPROFILE 'Documents\AuthUX'), (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'AuthUX')) -Filter 'AuthUX-source*.tar.gz' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1if ($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