From 96a64d439e974210f56d48a0d32137b7348caf3c Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Wed, 29 Jul 2026 12:15:56 -0400 Subject: [PATCH] Update build.sh --- scripts/build.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index fd38c1dd..37b5d011 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -66,17 +66,23 @@ rm -f "$LOVE_FILE" (cd "$ROOT" && zip -q -9 -r "$LOVE_FILE" \ main.lua conf.lua src data assets tools/save-editor \ tools/rom_manifest.json tools/rom_manifest_blue.json \ + tools/rom_manifest_yellow.json \ -x '*.DS_Store' 'data/generated/*' 'assets/generated/*') if unzip -Z1 "$LOVE_FILE" \ | grep -Eq '^(data|assets)/generated/[^/]+|^(data|assets)/generated/.+/'; then fail "game.love unexpectedly contains generated ROM data" fi # The editor is only reachable if its entry point and both module directories -# made it in; a silent miss would ship a launcher whose Edit button crashes. +# made it in, and every version's import manifest has to ship or that game's +# ROM import fails in the built app (dev reads them off the source tree, so +# the miss only ever shows up in a build -- the Yellow manifest shipped this +# way once). for required in tools/save-editor/App.lua tools/save-editor/Kit.lua \ - tools/save-editor/panels/Party.lua; do + tools/save-editor/panels/Party.lua \ + tools/rom_manifest.json tools/rom_manifest_blue.json \ + tools/rom_manifest_yellow.json; do unzip -Z1 "$LOVE_FILE" | grep -qx "$required" \ - || fail "game.love is missing $required (save editor would not load)" + || fail "game.love is missing $required" done say "game.love: $(du -h "$LOVE_FILE" | cut -f1)"