Repository navigation
Add native Windows app (WinUI 3 + C#/.NET) with CI, release packaging, and docs - #7
Merged
Merged
Conversation
…, and docs The Windows port of wInstaller lands in apps/windows/, mirroring the macOS app's architecture during the pre-Rust-core transition (ADR-0001 note): - WInstaller.Core (net8.0): typed state machine, marker-based ISO detection, operation planning with the full safety-gate set (removable-only, no boot/system disks, capacity, tool availability), executor pipeline with the identity re-check immediately before erase, redacted local logging, and a Simulate (dry-run) runner. 49 xunit tests run on Windows and Linux. - Bundled PowerShell helpers keep every system call argv-only: Get-Disk enumeration as JSON, Mount-DiskImage read-only ISO inspection, the Clear-Disk -> Initialize GPT -> Format FAT32 prepare step (the only elevated command, per ADR-0003, with safety gates re-checked inside the elevated context), DISM /Split-Image for oversized WIMs, and shell eject. - WInstaller.App: WinUI 3 assistant flow (welcome -> choose/verify ISO -> insert/analyze USB -> confirm erase -> create -> done) with Mica, Fluent styling, and SCREEN parity markers; all copy generated from shared/strings/copy.yaml into AppStrings.resx (ADR-0008). - CI: ci-windows.yml (core tests on windows+ubuntu, app publish smoke build), release-windows.yml (self-contained portable zip attached to releases), strings-sync job in parity.yml, and gen_strings_dotnet.py / make-ico.py. - Docs: README build/download/status/architecture updates, ROADMAP status, screen-inventory.yaml windows -> implemented, landing page Windows download. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017AWcakD66cJ6RdiLTAB8x8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This delivers the native Windows version of wInstaller in
apps/windows/, its release packaging, and the matching repo/docs/landing-page updates:WInstaller.Core(C#, net8.0) — the domain layer, mirroring the macOS Swift core during the pre-Rust-core transition (ADR-0001 note added to the README): typed state machine, marker-based ISO detection, operation planning with the full safety-gate set (removable-only, boot/system-disk refusal, capacity, tool availability), the executor pipeline with the drive-identity re-check immediately before erase, redacted local logging, and a Simulate (dry-run) runner.Scripts/*.ps1) keep every system call argv-only (-File script.ps1 -Param value):Get-Diskenumeration as JSON,Mount-DiskImage -Access ReadOnlyISO inspection, theClear-Disk → Initialize-Disk GPT → Format-Volume FAT32prepare step,DISM /Split-Imagefor oversizedinstall.wim, and shell eject. Only the prepare step (and DISM) runs elevated — a single UAC prompt scoped to the destructive operation per ADR-0003, with the safety gates re-checked inside the elevated context.WInstaller.App(WinUI 3) — the assistant flow (welcome → choose/verify ISO → insert/analyze USB → confirm erase → create → done) with Mica and Fluent styling. The virtualization-handoff step remainsnot-applicableon Windows per the screen inventory.ci-windows.yml(core tests on windows-latest and ubuntu-latest, app publish smoke build),release-windows.yml(self-contained portablewInstaller-Windows-x64.zipattached to GitHub releases, mirroring the macOS release workflow), and astrings-syncjob inparity.yml.apps/windows/README.md, ROADMAP status,screen-inventory.yaml(windows → implemented), and the landing page's Windows button now says Download.Type of change
Feature parity checklist (required for any user-visible feature)
See CONTRIBUTING.md and
docs/adr/0008-feature-parity-enforcement.md.
apps/windows/WInstaller.Core+ 49 xunit tests; the shared Rustcore/does not exist yet — transition documented in README andapps/windows/README.md).docs/screen-inventory.yamlupdated (all eight applicable steps flipped towindows: implemented;use-with-vmwarestaysnot-applicable).plannedindocs/screen-inventory.yamland ROADMAP (Phase 2) — no Linux tracking issue exists yet.shared/strings/copy.yaml— the Windows app consumes it via the new generatedAppStrings.resx(scripts/gen_strings_dotnet.py, enforced by the newstrings-syncCI job).Testing
swift testunaffected (no macOS code touched); macOS CI runs on this PRdotnet test WInstaller.Core.Testspasses — 49/49 (run locally on Linux; CI repeats it on windows-latest and ubuntu-latest)Risk / rollback notes
app-buildjob) — there is no Windows machine in this development environment. The full erase→format→copy→validate→eject pipeline is covered by unit tests against a fake runner plus the Simulate mode; it has not been run against real USB hardware — same standing caveat as the macOS app's safety note.🤖 Generated with Claude Code
https://claude.ai/code/session_017AWcakD66cJ6RdiLTAB8x8
Generated by Claude Code