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 diff --git a/.gitignore b/.gitignore index f1689c8..86c1c48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target .idea/ publish/ +/baseline/ 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/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" } 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 diff --git a/scripts/verify-installer.ps1 b/scripts/verify-installer.ps1 index 0655248..524b25f 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,11 @@ 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 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 {