Installer: base the space check on a measured build

A first build on a Steam Frame left 8.3 GB in its work folder, the
extracted disc and Dawn's build tree included, so asking for 20 GB plus
the disc nearly refused a card with 29 GB free. Ask for 10 GB (3 once
Dawn is built) plus the disc's extraction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
This commit is contained in:
Claude committed 2026-10-05 11:06:41 +00:00
1 parent b8ffe2ab8d
commit fadcf5ed0e
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -26,7 +26,7 @@
# host such as Frame Control's "frame"), or "local" when running on the Frame.
# Without it the game is only built.
# --work-dir DIR where the toolchain, Dawn, the build and the extracted disc live
# (default ~/wiicompiled-frame; about 20 GB)
# (default ~/wiicompiled-frame; about 10 GB, plus 5 for an extracted disc)
# --release TAG the release to build (default: the newest one). Ignored with --source.
# --source DIR build this source tree instead of a release (default when the script runs
# from inside one)
@@ -165,10 +165,10 @@ fi
note "$jobs parallel compiles"
# Room for the build. A first one (the toolchain, Dawn's source and build, the game's build) takes
# about 20 GB; later ones reuse Dawn. Extracting a disc image takes about 5 GB more, plus the
# about 10 GB (measured on a Frame: 8.3 GB with the disc); later ones reuse Dawn. Extracting a disc image takes about 5 GB more, plus the
# archive's size while one is unpacked. Running out halfway is worse than stopping here.
need_gb=20
[[ -f "$work_dir/dawn/package/aurora-dawn.json" ]] && need_gb=5
need_gb=10
[[ -f "$work_dir/dawn/package/aurora-dawn.json" ]] && need_gb=3
if [[ -n "$disc" && -f "$disc" && ! -f "$work_dir/disc/sys/main.dol" ]]; then
need_gb=$(( need_gb + 5 + $(du -k "$disc" | cut -f1) / 1024 / 1024 ))
fi
+2 -2
View File
@@ -43,7 +43,7 @@ of it compiling Dawn under emulation; later builds reuse it.
user password), on the same network as your PC;
- your own clean PAL `RMCP01` disc of Mario Kart Wii: an ISO, WBFS or RVZ image (WIA, CISO, GCZ
and NFS work too), as is or in a `.zip` or `.7z`, or a folder you extracted it to;
- an x86_64 Linux PC with about 20 GB free and 16 GB of memory or more.
- an x86_64 Linux PC with about 15 GB free and 16 GB of memory or more.
The PC commands below work in bash, zsh and fish.
@@ -83,7 +83,7 @@ curl -fsSL https://raw.githubusercontent.com/mitch030504/Wiicompiled_VR_Frame/op
key answers to that name.
- Everything it builds lives in `~/wiicompiled-frame` (`--work-dir` to change that): the toolchain,
Dawn, the source, the extracted disc and the build log, `build.log`. A first build needs about
20 GB there, and the script checks for it before starting.
10 GB there, plus about 5 GB for your extracted disc; the script checks before starting.
- It runs as many compiles at once as fit in memory (a quarter of your memory in GB). If the machine
still freezes, run it again with a lower `--jobs`, such as `--jobs 2`.
- If it stops for any reason, the same command picks up where it left off.