Skip to content

0.2.0: build with one command

Choose a tag to compare

@schuler-ph schuler-ph released this 22 Nov 20:24
· 28 commits to main since this release

Build with one command

You now only need Docker (on Linux, or in WSL2 on Windows) and your own disc:

git clone https://github.com/schuler-ph/nsmbw-switch.git
cd nsmbw-switch
./build.sh "New Super Mario Bros. Wii (USA) (Rev 1).iso"

Copy out/switch/nsmbw/ to sdmc:/switch/nsmbw/ and start it from hbmenu. That's it.

What's new

  • build.sh: builds the Switch version with Docker as the only tool. The toolchain (devkitA64, libnx, deko3d, .NET 8) comes in a Docker image with pinned versions; no devkitPro, .NET, meson & co. on your machine.
  • Disc images directly: .iso and .wbfs work as they are, no Dolphin needed. The game ID and revision (USA SMNE01 rev 1) are checked first, with a clear message for other versions. The game is extracted straight into out/switch/nsmbw/game/, so the SD card folder is complete.
  • Prebuilt graphics libraries: Dawn and libuam come from the release switch-deps-1, checked by SHA-256 (source attached there). If the download fails, build.sh builds them itself.
  • Jobs from memory: build.sh picks the number of parallel jobs from your free memory (about 1 GB each, 3 GB kept free).

Measured (Ryzen 7 5800X3D, WSL2 Ubuntu 24.04, 4 jobs)

Time
First build from an .iso, prebuilt libraries 20 min
First build, building Dawn and libuam too 32 min
Second run (cache) about 2 min
Peak memory about 5 GB

The build from this release was started on a Switch 1 (title screen and intro). Docker Desktop on Windows/macOS and machines with 8 GB of RAM are not tested yet; reports are welcome.

.rvz/.wia aren't read inside Docker yet: convert them to ISO in Dolphin (right-click → Convert File...). The manual build without Docker is still in the README.

As before: no game files and no .nro here. Everything made from your disc stays on your machine.