Skip to content

Release v0.21.0: terminal version for Windows 7 - #3

Merged
crashbashash merged 5 commits into
mainfrom
win7-tui
Nov 18, 2026
Merged

crashbashash merged 5 commits into
mainfrom
win7-tui

Conversation

@crashbashash

Copy link
Copy Markdown
Owner

Adds a terminal version of the patcher for Windows 7 and later (crates/dw4vhp-tui), for PCs that can't run the desktop app (Tauri 2.12 and Rust's Windows targets need Windows 10).

  • Same engine, every option, same settings files; ASCII/16-colour UI for the legacy Windows console.
  • Built for the tier-3 x86_64-win7-windows-msvc target with a pinned nightly and the static CRT; tools/win7.mjs fails on any import Windows 7 lacks.
  • New CI Windows 7 workflow (target tests + build + import check); the release now requires dw4-crown-mod-v0.21.0-windows7-x86_64.zip.
  • Settings files, default output naming and disc notices moved into core, shared by the desktop app and the TUI.
  • Fixed random-boss log lines writing to stderr during patches (now behind DW4_RANDOM_LOG).

Validation: check:core, check:desktop, release-notes tests, local cross-build; on a Windows 7 SP1 VM the TUI's patches were byte-identical to Linux for PS2 USA/Europe/Japan and GameCube USA (.rvz)/Japan (.ciso) with all options except random crown colours (seed 1520).

Refs #2

- New dw4vhp-tui crate (ratatui/crossterm, ASCII-only, 16 colours): disc check, options, settings files, output path and progress
- Move the settings-file format, default output naming and disc refusal notices into core so the desktop app and TUI share them
- tools/build-win7-tui.sh cross-builds x86_64-win7-windows-msvc with a static CRT, rejects Windows 8+ imports and zips the exe
- Writing the bottom-right cell wraps and scrolls a console without VT mode, hiding the top row; found by forcing crossterm's WinAPI path under Wine
- The unconditional eprintln! wrote over the TUI's screen during random-boss patches; the other random-enemy logs already use this variable
- tools/win7.mjs (npm run build:win7 / check:win7) replaces the Linux-only script: pinned nightly-2026-11-17, std rebuilt with the static CRT, native MSVC on Windows and cargo-xwin elsewhere, then fails on any import Windows 7 lacks and zips the exe with a CRLF README
- CI Windows 7 runs the core and TUI tests built for x86_64-win7-windows-msvc and the release build on every push and PR; the release workflow builds and requires the windows7 zip before publishing
- release-notes.mjs checks the TUI crate version; README gains the CI Windows 7 badge, Windows 7 requirements and download instructions; DEVELOPMENT.md documents the build
- cargo fmt for the TUI and the Tauri commands change
Terminal version for Windows 7 and later, built and checked in CI and attached to the release as dw4-crown-mod-v0.21.0-windows7-x86_64.zip.

Validation: npm run check:core and check:desktop; release-notes tests; npm run build:win7 (cross-build, import check, zip); TUI patches on a Windows 7 SP1 VM byte-identical to Linux for PS2 USA/Europe/Japan and GameCube USA (.rvz)/Japan (.ciso) with all options except random crown colours, seed 1520.

Refs #2
@crashbashash
crashbashash merged commit ee72634 into main Nov 18, 2026
7 checks passed
@crashbashash
crashbashash deleted the win7-tui branch November 18, 2026 19:25
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.

1 participant