Skip to content

Add native Windows app (WinUI 3 + C#/.NET) with CI, release packaging, and docs - #7

Merged
pedrobritx merged 1 commit into
mainfrom
claude/windows-winstaller-release-l7dadw
Jul 2, 2026
Merged

pedrobritx merged 1 commit into
mainfrom
claude/windows-winstaller-release-l7dadw

Conversation

@pedrobritx

@pedrobritx pedrobritx commented Jul 2, 2026 •

Copy link
Copy Markdown
Owner

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.
  • Bundled PowerShell helpers (Scripts/*.ps1) keep every system call argv-only (-File script.ps1 -Param value): Get-Disk enumeration as JSON, Mount-DiskImage -Access ReadOnly ISO inspection, the Clear-Disk → Initialize-Disk GPT → Format-Volume FAT32 prepare step, DISM /Split-Image for oversized install.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 remains not-applicable on Windows per the screen inventory.
  • CI + release: ci-windows.yml (core tests on windows-latest and ubuntu-latest, app publish smoke build), release-windows.yml (self-contained portable wInstaller-Windows-x64.zip attached to GitHub releases, mirroring the macOS release workflow), and a strings-sync job in parity.yml.
  • Docs/site: README (badges, download table, Windows status + build instructions, architecture transition note), apps/windows/README.md, ROADMAP status, screen-inventory.yaml (windows → implemented), and the landing page's Windows button now says Download.

Type of change

  • Bug fix (no user-visible feature/behavior change)
  • Feature (user-visible change — complete the parity checklist below)
  • Docs / ADR only
  • Infra / CI only

Feature parity checklist (required for any user-visible feature)

See CONTRIBUTING.md and
docs/adr/0008-feature-parity-enforcement.md.

  • Core engine change included, with tests (apps/windows/WInstaller.Core + 49 xunit tests; the shared Rust core/ does not exist yet — transition documented in README and apps/windows/README.md).
  • docs/screen-inventory.yaml updated (all eight applicable steps flipped to windows: implemented; use-with-vmware stays not-applicable).
  • Implemented on all three platforms where user-visible, or the gap is explicitly tracked: macOS ✅ and Windows ✅; Linux remains planned in docs/screen-inventory.yaml and ROADMAP (Phase 2) — no Linux tracking issue exists yet.
  • New/changed copy comes from shared/strings/copy.yaml — the Windows app consumes it via the new generated AppStrings.resx (scripts/gen_strings_dotnet.py, enforced by the new strings-sync CI job).

Testing

  • swift test unaffected (no macOS code touched); macOS CI runs on this PR
  • dotnet test WInstaller.Core.Tests passes — 49/49 (run locally on Linux; CI repeats it on windows-latest and ubuntu-latest)
  • No destructive commands were run against real hardware during testing
  • Relevant spec doc(s) updated to match new behavior (ROADMAP, screen inventory, READMEs)

Risk / rollback notes

  • The WinUI 3 app build is verified only in CI (app-build job) — 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.
  • Release zips are unsigned until code signing is provisioned (ADR-0006 Phase 4); SmartScreen will warn on first launch. MSIX becomes the primary format once a certificate exists.
  • Windows caps FAT32 volumes at 32 GB, so on larger sticks the app creates a 32 GB installer partition and surfaces a warning in the plan review.
  • Rollback: revert this single commit — no existing macOS/docs behavior depends on the new directory.

🤖 Generated with Claude Code

https://claude.ai/code/session_017AWcakD66cJ6RdiLTAB8x8


Generated by Claude Code

…, 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
@pedrobritx
pedrobritx marked this pull request as ready for review July 2, 2026 21:25
@pedrobritx
pedrobritx merged commit f9677e6 into main Jul 2, 2026
8 checks passed
@pedrobritx
pedrobritx deleted the claude/windows-winstaller-release-l7dadw branch July 2, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants