A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Point the updater and download links to Eternity070628/WacOS
Eternity070628fd43cd8cf61c
diff --git a/instalador/instalar.ps1 b/instalador/instalar.ps1index 2567f08..3b6ef94 100644--- a/instalador/instalar.ps1+++ b/instalador/instalar.ps1@@ -1,4 +1,4 @@-# Instala o WacOS neste PC (só para o seu usuário; não precisa de administrador).+# Instala o WacOS neste PC (só para o seu usuário; não precisa de administrador).# - Programas em %LOCALAPPDATA%\Programs\WacOS (bin, icones, sons)# - Fontes SF Pro só para o seu usuário (se vierem na pasta "fontes")# - Atalho "WacOS" no Menu Iniciar e, se você quiser, início automático ao entrar no Windows@@ -31,9 +31,9 @@ if (-not (Test-Path (Join-Path $src '..\bin\WacOSShell.exe')) -and -not (Test-PaWrite-Host "Esta pasta é o código-fonte do WacOS, sem os programas compilados." -ForegroundColor YellowWrite-Host "This folder is the WacOS source code, without the compiled programs." -ForegroundColor YellowWrite-Host "`nBaixe o WacOS.zip pronto em / Download the ready-made WacOS.zip from:"- Write-Host " https://github.com/renzyxx/WacOS/releases/latest"+ Write-Host " https://github.com/Eternity070628/WacOS/releases/latest"Write-Host "`nExtraia e rode o instalar.cmd de dentro dele. / Extract it and run instalar.cmd from inside it."- Start-Process 'https://github.com/renzyxx/WacOS/releases/latest' -ErrorAction SilentlyContinue+ Start-Process 'https://github.com/Eternity070628/WacOS/releases/latest' -ErrorAction SilentlyContinueSair}if ($Atualizar -and -not (Test-Path (Join-Path $dest 'bin\WacOSShell.exe')) -and -not $temVelho) {diff --git a/rust-teste/apps/ajustes/src/paginas.rs b/rust-teste/apps/ajustes/src/paginas.rsindex e2fd868..8a49de5 100644--- a/rust-teste/apps/ajustes/src/paginas.rs+++ b/rust-teste/apps/ajustes/src/paginas.rs@@ -653,7 +653,7 @@ fn upd_check() {// bin\versao.txt e a mais nova direto do GitHublet versao = std::fs::read_to_string(format!("{}\\versao.txt", bin_dir())).unwrap_or_default();u.atual = versao.trim_start_matches('\u{feff}').lines().next().unwrap_or("").trim().to_string();- match comum::rede::get("api.github.com", "/repos/renzyxx/WacOS/releases/latest", "WacOS", 4 << 20) {+ match comum::rede::get("api.github.com", "/repos/Eternity070628/WacOS/releases/latest", "WacOS", 4 << 20) {Some(b) => {let j = String::from_utf8_lossy(&b).to_string();u.novo = comum::rede::json_field(&j, "tag_name");@@ -734,7 +734,7 @@ pub fn atualizacao() -> Page {let setup = format!("{}\\WacOSSetup.exe", upd_root());if !std::path::Path::new(&upd_script()).exists() {// issue #326: sem a instalação normal, a página da versão nova (o WacOS-Rust.zip está nela)- shell_open("https://github.com/renzyxx/WacOS/releases/latest", None);+ shell_open("https://github.com/Eternity070628/WacOS/releases/latest", None);return;}if std::path::Path::new(&setup).exists() {diff --git a/rust-teste/apps/setup/src/main.rs b/rust-teste/apps/setup/src/main.rsindex e6f1ce8..35b3fd2 100644--- a/rust-teste/apps/setup/src/main.rs+++ b/rust-teste/apps/setup/src/main.rs@@ -638,7 +638,7 @@ fn register_uninstall() {reg_set_str(hk, UNINST_KEY, Some("Publisher"), "WacOS");reg_set_str(hk, UNINST_KEY, Some("DisplayIcon"), &format!("{setup},0"));reg_set_str(hk, UNINST_KEY, Some("InstallLocation"), &dest);- reg_set_str(hk, UNINST_KEY, Some("URLInfoAbout"), "https://github.com/renzyxx/WacOS");+ reg_set_str(hk, UNINST_KEY, Some("URLInfoAbout"), "https://github.com/Eternity070628/WacOS");reg_set_str(hk, UNINST_KEY, Some("UninstallString"), &format!("\"{setup}\" --desinstalar"));reg_set_str(hk, UNINST_KEY, Some("ModifyPath"), &format!("\"{setup}\""));reg_set_dword(hk, UNINST_KEY, "NoRepair", 1);@@ -1233,13 +1233,13 @@ fn json_str(j: &str, key: &str, from: usize) -> Option<(String, usize)> {}/// sem a API (limite de 60 por hora por IP): a página pública da release tem o mesmofn check_github_pagina() -> Option<Release> {- let pg = String::from_utf8_lossy(&http_get("github.com", "/renzyxx/WacOS/releases/latest", "text/html", None, &|_, _| {})).to_string();- let ea = "/renzyxx/WacOS/releases/expanded_assets/";+ let pg = String::from_utf8_lossy(&http_get("github.com", "/Eternity070628/WacOS/releases/latest", "text/html", None, &|_, _| {})).to_string();+ let ea = "/Eternity070628/WacOS/releases/expanded_assets/";let i = pg.find(ea)? + ea.len();let e = pg[i..].find(['"', '\'', '?', '#'])? + i;let tag = pg[i..e].to_string();let as_ = String::from_utf8_lossy(&http_get("github.com", &format!("{ea}{tag}"), "text/html", None, &|_, _| {})).to_string();- let dl = format!("/renzyxx/WacOS/releases/download/{tag}/");+ let dl = format!("/Eternity070628/WacOS/releases/download/{tag}/");let mut from = 0;while let Some(q) = as_[from..].find(&dl).map(|x| x + from) {let qe = as_[q..].find('"')? + q;@@ -1266,7 +1266,7 @@ fn check_github() {// edição em Rust: as releases do GitHub são do C++; instala só do pacote local (build-rust.ps1)return;}- let j = String::from_utf8_lossy(&http_get("api.github.com", "/repos/renzyxx/WacOS/releases/latest", "application/vnd.github+json", None, &|_, _| {})).to_string();+ let j = String::from_utf8_lossy(&http_get("api.github.com", "/repos/Eternity070628/WacOS/releases/latest", "application/vnd.github+json", None, &|_, _| {})).to_string();let mut r = Release::default();let mut err = String::new();if j.is_empty() {@@ -2105,7 +2105,7 @@ fn next() {return;}Page::Error => {- shell_open("https://github.com/renzyxx/WacOS/releases/latest", None);+ shell_open("https://github.com/Eternity070628/WacOS/releases/latest", None);unsafe {let _ = PostMessageW(a().hwnd, WM_CLOSE, WPARAM(0), LPARAM(0));}diff --git a/rust-teste/apps/troca/src/main.rs b/rust-teste/apps/troca/src/main.rsindex a1ab40f..d41830d 100644--- a/rust-teste/apps/troca/src/main.rs+++ b/rust-teste/apps/troca/src/main.rs@@ -336,7 +336,7 @@ fn vigia() -> i32 {fn instalar() -> i32 {log("=== instalar: começo");let r = ps(r#"if (@(Procs $Rust).Count) { 'aberta'; return }-$api = 'https://api.github.com/repos/renzyxx/WacOS/releases/latest'+$api = 'https://api.github.com/repos/Eternity070628/WacOS/releases/latest'$tmp = Join-Path $env:TEMP ('wacos-rust-' + [guid]::NewGuid().ToString('N')); New-Item -ItemType Directory -Force $tmp | Out-Nulltry {$j = & curl.exe -sL -H 'User-Agent: WacOS' $api | ConvertFrom-Jsondiff --git a/src/setup/main.cpp b/src/setup/main.cppindex 6862d75..d051821 100644--- a/src/setup/main.cpp+++ b/src/setup/main.cpp@@ -414,7 +414,7 @@ static void RegisterUninstall() {RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"Publisher", L"WacOS");RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"DisplayIcon", setup + L",0");RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"InstallLocation", g_dest);- RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"URLInfoAbout", L"https://github.com/renzyxx/WacOS");+ RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"URLInfoAbout", L"https://github.com/Eternity070628/WacOS");RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"UninstallString", L"\"" + setup + L"\" --desinstalar");RegSetStr(HKEY_CURRENT_USER, UNINST_KEY, L"ModifyPath", L"\"" + setup + L"\"");RegSetDword(HKEY_CURRENT_USER, UNINST_KEY, L"NoRepair", 1);@@ -814,14 +814,14 @@ static wstring JsonStr(const std::string& j, const std::string& key, size_t from// login, e operadoras que dividem um IP entre muitos clientes (CGNAT) estouram isso. A página pública da release// tem o mesmo: /releases/latest leva à tag, e /releases/expanded_assets/<tag> lista o .zip com o SHA-256.static bool CheckGitHubPagina() {- std::string pg = HttpGet(L"github.com", L"/renzyxx/WacOS/releases/latest", L"text/html");- const std::string ea = "/renzyxx/WacOS/releases/expanded_assets/";+ std::string pg = HttpGet(L"github.com", L"/Eternity070628/WacOS/releases/latest", L"text/html");+ const std::string ea = "/Eternity070628/WacOS/releases/expanded_assets/";size_t p = pg.find(ea); if (p == std::string::npos) return false;p += ea.size();size_t e = pg.find_first_of("\"'?#", p); if (e == std::string::npos) return false;std::string tag = pg.substr(p, e - p);std::string as = HttpGet(L"github.com", FromUtf8(ea + tag), L"text/html");- const std::string dl = "/renzyxx/WacOS/releases/download/" + tag + "/";+ const std::string dl = "/Eternity070628/WacOS/releases/download/" + tag + "/";for (size_t q = as.find(dl); q != std::string::npos; q = as.find(dl, q + 1)) {size_t qe = as.find('"', q); if (qe == std::string::npos) break;std::string href = as.substr(q, qe - q);@@ -837,7 +837,7 @@ static bool CheckGitHubPagina() {}static void CheckGitHub() {g_rel = {}; g_relErr.clear();- std::string j = HttpGet(L"api.github.com", L"/repos/renzyxx/WacOS/releases/latest", L"application/vnd.github+json");+ std::string j = HttpGet(L"api.github.com", L"/repos/Eternity070628/WacOS/releases/latest", L"application/vnd.github+json");if (j.empty()) {DWORD api = g_httpCode;if (CheckGitHubPagina()) return;@@ -1287,7 +1287,7 @@ static void Next() {}PostMessageW(g_wnd, WM_CLOSE, 0, 0);return;- case P_ERROR: ShellExecuteW(nullptr, L"open", L"https://github.com/renzyxx/WacOS/releases/latest", nullptr, nullptr, SW_SHOWNORMAL); PostMessageW(g_wnd, WM_CLOSE, 0, 0); return;+ case P_ERROR: ShellExecuteW(nullptr, L"open", L"https://github.com/Eternity070628/WacOS/releases/latest", nullptr, nullptr, SW_SHOWNORMAL); PostMessageW(g_wnd, WM_CLOSE, 0, 0); return;default: break;}InvalidateRect(g_wnd, nullptr, FALSE);diff --git a/tools/atualizar-github.ps1 b/tools/atualizar-github.ps1index 262bc3a..d36e868 100644--- a/tools/atualizar-github.ps1+++ b/tools/atualizar-github.ps1@@ -1,4 +1,4 @@-# Updates WacOS from GitHub (System Settings > General > Software Update).+# Updates WacOS from GitHub (System Settings > General > Software Update).# Every commit on GitHub builds a new package (GitHub Actions, .github\workflows\build.yml) published as the# "latest" release, with bin\versao.txt inside (line 1: the version, e.g. build-12; line 2: the commit; line 3: the date).# -Verificar -Saida <file>: only checks (System Settings calls it when the page opens) and writes one item per line:@@ -8,7 +8,7 @@# Private repository: the GitHub token goes in %APPDATA%\Shell\github-token.txt (read-only is enough).param([switch]$Verificar, [string]$Saida = '', [string]$Bin = '')$ErrorActionPreference = 'Stop'-$repo = 'renzyxx/WacOS'+$repo = 'Eternity070628/WacOS'if (-not $Bin) { $Bin = Join-Path $env:LOCALAPPDATA 'Programs\WacOS\bin' }$out = New-Object System.Collections.Generic.List[string]diff --git a/tools/publicar.ps1 b/tools/publicar.ps1index 2100432..5104370 100644--- a/tools/publicar.ps1+++ b/tools/publicar.ps1@@ -1,4 +1,4 @@-# Publishes a new WacOS version on GitHub with the FULL package (programs, icons, SF fonts, macOS sounds and+# Publishes a new WacOS version on GitHub with the FULL package (programs, icons, SF fonts, macOS sounds and# cursor), built on this PC: the fonts, sounds and cursor are not in the repository, so GitHub Actions can't build# this package (it only checks that the code compiles).# 1. next version = build-<highest build-N + 1>@@ -17,7 +17,7 @@ param([string]$Notas = '', [string]$RustDist = '', [switch]$SoRust, [string]$Tag$ErrorActionPreference = 'Stop'$root = Split-Path $PSScriptRoot -ParentSet-Location $root-$repo = 'renzyxx/WacOS'+$repo = 'Eternity070628/WacOS'$log = Join-Path $root 'dist\publicar.log'function L($s) { $s | Tee-Object -FilePath $log -Append | Write-Host }New-Item -ItemType Directory -Force (Join-Path $root 'dist') | Out-Nulldiff --git a/tools/recursos.ps1 b/tools/recursos.ps1index 1cb9621..8f762fb 100644--- a/tools/recursos.ps1+++ b/tools/recursos.ps1@@ -1,4 +1,4 @@-# Gera os recursos de cada programa: ícone (.ico feito do PNG do pacote em icones\sequoia) e VERSIONINFO+# Gera os recursos de cada programa: ícone (.ico feito do PNG do pacote em icones\sequoia) e VERSIONINFO# com o nome em inglês que o Gerenciador de Tarefas mostra. Chamado pelo build.cmd; saída em bin\obj\res.# Sem o pacote de ícones (pasta icones\sequoia), gera só a versão (o .exe fica com o ícone padrão).param([string]$Out = (Join-Path $PSScriptRoot '..\bin\obj\res'))@@ -95,7 +95,7 @@ BEGINBLOCK "040904B0"BEGINVALUE "CompanyName", "WacOS"- VALUE "Comments", "https://github.com/renzyxx/WacOS"+ VALUE "Comments", "https://github.com/Eternity070628/WacOS"VALUE "LegalCopyright", "Copyright (c) 2026 renzyxx. All rights reserved."VALUE "FileDescription", "$desc"VALUE "FileVersion", "1.0.0.0"diff --git a/tools/versao.ps1 b/tools/versao.ps1index 4894a18..40dabe5 100644--- a/tools/versao.ps1+++ b/tools/versao.ps1@@ -7,7 +7,7 @@ $root = Split-Path $PSScriptRoot -Parent$f = Join-Path $root 'bin\versao.txt'$tag = ''if (Get-Command gh) {- $tags = @(gh release list -R renzyxx/WacOS --limit 100 --json tagName --jq '.[].tagName' 2>$null)+ $tags = @(gh release list -R Eternity070628/WacOS --limit 100 --json tagName --jq '.[].tagName' 2>$null)$n = @($tags | Where-Object { $_ -match '^build-(\d+)$' } | ForEach-Object { [int]($_ -replace '^build-', '') } | Measure-Object -Maximum).Maximumif ($n) { $tag = "build-$n" }}