Skip to content
Edit this page

001: Project Idea and Scope

  • Type: Product
  • Status: Accepted
  • Date: 2026-12-02
  • Author(s) / Deciders: João V. Farias
  • Question: What problem does this project solve, for whom, and what is explicitly in or out of scope?

Context

Linux developers compiling Windows applications, modding games that require Windows SDKs, freezing Windows Python binaries, or building .exe installers often run a full Windows virtual machine solely for build steps. Repository-specific Wine scripts (such as the earlier neorune.nu and Makefile scripts used in CoopCourier) avoid a VM for one codebase. However, they hardcode machine paths, fail when Linux distributions ship incompatible Wine versions, and duplicate fragile quoting logic across repositories.

winesmith replaces those per-repository scripts with a standalone Linux CLI that manages reproducible Wine and Proton environments targeting Windows 7, 10, and 11.

Requirements and restrictions

The project targets Linux developers, game modders using Windows compilers, and headless CI runners on 64-bit Linux hosts (x86_64-unknown-linux-gnu and static x86_64-unknown-linux-musl).

The tool includes six primary capabilities in scope:

  • Provision pinned portable Kron4ek Wine 10 staging-amd64-wow64 runners by default alongside system Wine, Steam proton, and ge-proton backends.
  • Manage shared named or spec-hashed prefixes and opt-in isolated prefixes targeting win7, win10, and win11 on win64 or win32.
  • Load declarative winesmith.toml manifests, gitignored winesmith.local.toml overrides, and SHA-256 winesmith.lock files.
  • Install .NET SDK, portable Windows Python, Inno Setup, NSIS, optional winetricks verbs, and generic custom packages declaratively.
  • Run hybrid Wine and Linux host task graphs with MiniJinja templates, winpath(...) conversion, --all-targets matrices, forbid_running process checks, and zero-config exec.
  • Provide native Nushell completions via extern --strict, @structured, def --wrapped, and local __complete queries.

Four areas remain explicitly outside v1 scope:

  • Desktop GUI management or game launcher interfaces handled by tools such as Lutris or Bottles.
  • Native execution of winesmith itself on macOS or Windows hosts.
  • Automatic generation or maintenance of project Makefile files.
  • Replacement of native Linux cross-compilers where no Wine environment is needed.

Alternatives

Three existing approaches were evaluated before writing a dedicated tool:

  • Windows virtual machines under QEMU/KVM or VirtualBox provide full kernel fidelity, though they require tens of gigabytes of disk space, large memory allocations, slow boot cycles, and license setup.
  • Desktop wrappers such as Bottles, Lutris, and plain winetricks focus on interactive GUI software rather than headless CLI automation, SHA-256 lockfiles, or multi-target build matrices.
  • Maintaining Nushell plus Makefile scripts inside each repository keeps prototyping quick, yet forces every build machine to install Nushell and repeats prefix setup and batch quoting code across projects.

Decision

Build winesmith as a standalone Rust CLI for Linux that compiles, tests, and packages Windows 7, 10, and 11 software inside declarative, lockfile-pinned Wine and Proton environments. All project settings live in winesmith.toml, so teams decide whether to add any separate Makefile wrappers themselves.

Consequences

Positives

Linux developers and CI containers build Windows binaries and installers without maintaining a Windows VM or system-wide 32-bit multilib packages. Repositories replace hundreds of lines of custom batch and shell glue with a short portable manifest.

Negatives

Software that relies on Windows kernel-mode drivers or unimplemented Win32 APIs cannot run in Wine and still requires a Windows host or VM. Maintainers of winesmith must track upstream URL structures for .NET, Python NuGet packages, Inno Setup, NSIS, and Kron4ek releases.