Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ permissions:
jobs:
rust:
runs-on: windows-2025
permissions:
contents: read

steps:
- name: Check out repository
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.idea/
publish/
/baseline/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions crates/hyperkey-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "hyperkey-app"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
hyperkey-core = { path = "../hyperkey-core" }
Expand Down
1 change: 1 addition & 0 deletions crates/hyperkey-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "hyperkey-core"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
serde = { version = "1", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions crates/hyperkey-input/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "hyperkey-input"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
hyperkey-core = { path = "../hyperkey-core" }
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 9 additions & 4 deletions scripts/verify-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }
Expand Down Expand Up @@ -501,16 +503,19 @@ 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
Write-Host " warn your previous settings are backed up at $backupDirectory" -ForegroundColor Yellow
}
}

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 {
Expand Down
Loading