2026-03-31 07:59:21 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# Build commands: wasm, gdext
|
|
|
|
|
|
|
|
|
|
cmd_build_wasm() {
|
|
|
|
|
echo -e "${BLUE}Building WASM (simulator → guide)...${NC}"
|
|
|
|
|
(cd "$SIMULATOR_DIR" && bash build-wasm.sh "$@")
|
2026-04-17 13:06:14 -07:00
|
|
|
echo -e "${GREEN}✓ WASM built → .local/build/wasm/${NC}"
|
2026-03-31 07:59:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cmd_build_gdext() {
|
|
|
|
|
echo -e "${BLUE}Building GDExtension (simulator → game)...${NC}"
|
|
|
|
|
(cd "$SIMULATOR_DIR" && bash build-gdext.sh "$@")
|
|
|
|
|
echo -e "${GREEN}✓ GDExtension built → src/game/addons/magic_civ_physics/${NC}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cmd_build() {
|
|
|
|
|
local exit_code=0
|
2026-04-17 12:25:47 -07:00
|
|
|
cmd_build_info || exit_code=$?
|
|
|
|
|
echo ""
|
2026-03-31 07:59:21 -07:00
|
|
|
cmd_build_wasm || exit_code=$?
|
|
|
|
|
echo ""
|
|
|
|
|
cmd_build_gdext || exit_code=$?
|
|
|
|
|
return $exit_code
|
|
|
|
|
}
|