From b66ace2b5f4abef58777ae0a6c4890c248525faa Mon Sep 17 00:00:00 2001 From: squidllee Date: Sun, 1 Nov 2026 19:32:31 -0500 Subject: [PATCH 1/5] fix(scripts): keep Inno logs and the settings backup when verification fails --- scripts/verify-installer.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/verify-installer.ps1 b/scripts/verify-installer.ps1 index 0655248..7552390 100644 --- a/scripts/verify-installer.ps1 +++ b/scripts/verify-installer.ps1 @@ -376,6 +376,7 @@ $hadExistingAppData = Test-Path -LiteralPath $appDataDirectory $hadExistingShortcut = Test-Path -LiteralPath $startMenuShortcut $savedStartupRegistration = Get-StartupRegistration $startedVerification = $false +$verificationPassed = $false New-Item -ItemType Directory -Path $workDirectory -Force | Out-Null @@ -458,9 +459,10 @@ try { Test-CleanUninstall Write-Host "`nInstaller verification passed." -ForegroundColor Green + $verificationPassed = $true } finally { - $verificationFailed = $true + $cleanupFailed = $true Get-Process -Name 'Hyperkey.App' -ErrorAction SilentlyContinue | ForEach-Object { Stop-Process -Id $_.Id -Force -ErrorAction SilentlyContinue } @@ -501,7 +503,7 @@ finally { Set-ItemProperty -LiteralPath $runKeyPath -Name $runValueName -Value $savedStartupRegistration } - $verificationFailed = $false + $cleanupFailed = $false } catch { Write-Host " warn cleanup could not fully restore this machine: $($_.Exception.Message)" -ForegroundColor Yellow @@ -509,8 +511,10 @@ finally { } } - if ($verificationFailed) { - # Keep the Inno logs and the settings backup for diagnosis and recovery. + if ($cleanupFailed -or -not $verificationPassed) { + # Keep the Inno logs and the settings backup whenever the run did not + # pass: they are the diagnosis and recovery material. A clean pass + # leaves nothing worth keeping. Write-Host " logs and settings backup kept at $workDirectory" -ForegroundColor Yellow } else { From 95dda0570dcf1dd9ab902625043acc3e105ff9f4 Mon Sep 17 00:00:00 2001 From: squidllee Date: Sun, 1 Nov 2026 19:32:32 -0500 Subject: [PATCH 2/5] ci: drop dead workflow config and gate cargo on the committed lockfile --- .github/workflows/ci.yml | 10 ++++------ .github/workflows/release.yml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 468003d..adef1f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,6 @@ permissions: jobs: rust: runs-on: windows-2025 - permissions: - contents: read steps: - name: Check out repository @@ -31,13 +29,13 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Lint workspace - run: cargo clippy --workspace --all-targets -- -D warnings + run: cargo clippy --locked --workspace --all-targets -- -D warnings - name: Run workspace tests - run: cargo test --workspace + run: cargo test --locked --workspace - name: Build app - run: cargo build -p hyperkey-app --release + run: cargo build --locked -p hyperkey-app --release installer: runs-on: windows-2025 @@ -48,7 +46,7 @@ jobs: - name: Install Rust toolchain run: | - rustup toolchain install stable-x86_64-pc-windows-msvc --profile minimal --component clippy + rustup toolchain install stable-x86_64-pc-windows-msvc --profile minimal rustup default stable-x86_64-pc-windows-msvc - name: Cache Rust build artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2236228..95c39c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Install Rust toolchain run: | - rustup toolchain install stable-x86_64-pc-windows-msvc --profile minimal --component clippy + rustup toolchain install stable-x86_64-pc-windows-msvc --profile minimal rustup default stable-x86_64-pc-windows-msvc - name: Cache Rust build artifacts From 51d79df622fd9e13805c10d79ebe925a5eeb918e Mon Sep 17 00:00:00 2001 From: squidllee Date: Sun, 1 Nov 2026 19:32:32 -0500 Subject: [PATCH 3/5] docs: correct the tray gesture and caveat the superseded phase records --- README.md | 2 +- docs/CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee1a068..63437ee 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Your real Ctrl, Alt, and Shift keys keep working exactly as before. Hyperkey add 1. Download the `Hyperkey-Setup-*.exe` installer from the [releases page](https://github.com/Squidys-Tools/hyperkey/releases). 2. Run it. The installer is per-user and needs no administrator access. -3. Hyperkey starts in the system tray. Click the tray icon to open settings. +3. Hyperkey starts in the system tray. Double-click the tray icon to open settings, or right-click it and choose **Open settings**. The installer isn't code-signed yet, so Windows may show a SmartScreen warning on first run. Choose "More info" and "Run anyway" to continue. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 972d70f..2abc5e9 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,6 +11,8 @@ This document tracks the implementation phases and current project status. ## Implementation Phases +Phases 1-3 are recorded as the original plan — their C# and WPF specifics are superseded by the Rust implementation described in `DESIGN.md`. + ### Phase 1: Native Shell ✅ Complete - [x] WPF desktop project with WPF UI theme resources From d19c91b46c0f556bcbc3735d49867fa68f420b23 Mon Sep 17 00:00:00 2001 From: squidllee Date: Sun, 1 Nov 2026 19:32:33 -0500 Subject: [PATCH 4/5] chore: ignore baseline downloads and inherit the workspace license --- .gitignore | 1 + crates/hyperkey-app/Cargo.toml | 1 + crates/hyperkey-core/Cargo.toml | 1 + crates/hyperkey-input/Cargo.toml | 1 + 4 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index f1689c8..bc203cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target .idea/ publish/ +baseline/ diff --git a/crates/hyperkey-app/Cargo.toml b/crates/hyperkey-app/Cargo.toml index bec248f..668fd59 100644 --- a/crates/hyperkey-app/Cargo.toml +++ b/crates/hyperkey-app/Cargo.toml @@ -2,6 +2,7 @@ name = "hyperkey-app" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] hyperkey-core = { path = "../hyperkey-core" } diff --git a/crates/hyperkey-core/Cargo.toml b/crates/hyperkey-core/Cargo.toml index 703bb5b..a66f956 100644 --- a/crates/hyperkey-core/Cargo.toml +++ b/crates/hyperkey-core/Cargo.toml @@ -2,6 +2,7 @@ name = "hyperkey-core" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] serde = { version = "1", features = ["derive"] } diff --git a/crates/hyperkey-input/Cargo.toml b/crates/hyperkey-input/Cargo.toml index 10a653b..009042e 100644 --- a/crates/hyperkey-input/Cargo.toml +++ b/crates/hyperkey-input/Cargo.toml @@ -2,6 +2,7 @@ name = "hyperkey-input" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] hyperkey-core = { path = "../hyperkey-core" } From 782854e5f5b06803c68d36dd258bcdf473512e3c Mon Sep 17 00:00:00 2001 From: squidllee Date: Sun, 1 Nov 2026 19:55:38 -0500 Subject: [PATCH 5/5] docs+gitignore: spell out artifact-retention condition and anchor baseline/ to root --- .gitignore | 2 +- scripts/verify-installer.ps1 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bc203cf..86c1c48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target .idea/ publish/ -baseline/ +/baseline/ diff --git a/scripts/verify-installer.ps1 b/scripts/verify-installer.ps1 index 7552390..524b25f 100644 --- a/scripts/verify-installer.ps1 +++ b/scripts/verify-installer.ps1 @@ -513,8 +513,9 @@ finally { if ($cleanupFailed -or -not $verificationPassed) { # Keep the Inno logs and the settings backup whenever the run did not - # pass: they are the diagnosis and recovery material. A clean pass - # leaves nothing worth keeping. + # pass or the cleanup could not restore this machine: they are the + # diagnosis and recovery material. A clean pass leaves nothing worth + # keeping. Write-Host " logs and settings backup kept at $workDirectory" -ForegroundColor Yellow } else {