fix(@projects/magic-civilization): 🐛 update build paths to use .local/build

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-04-16 18:11:20 -07:00
parent 64cefb9d49
commit f8533b6481
3 changed files with 11 additions and 6 deletions

View file

@ -33,7 +33,7 @@ cmd_install_osx() {
echo -e "${RED}Export failed.${NC}"; return 1
fi
BUILD_ZIP="$REPO_ROOT/builds/$VERSION/macos/$ZIP_NAME"
BUILD_ZIP="$REPO_ROOT/.local/build/godot/$VERSION/macos/$ZIP_NAME"
[ -f "$BUILD_ZIP" ] || { echo -e "${RED}Build artifact not found: $BUILD_ZIP${NC}"; return 1; }
echo -e "${GREEN} ✓ Exported $(du -h "$BUILD_ZIP" | cut -f1)${NC}"
@ -116,7 +116,7 @@ cmd_install_ios() {
echo -e "${YELLOW}[1/4] Exporting iOS Xcode project...${NC}"
"$REPO_ROOT/tools/export-single.sh" ios "$VERSION" $EXPORT_FLAG 2>&1 || { echo -e "${RED}Export failed.${NC}"; return 1; }
local BUILD_DIR="$REPO_ROOT/builds/$VERSION/ios"
local BUILD_DIR="$REPO_ROOT/.local/build/godot/$VERSION/ios"
[ -d "$BUILD_DIR/MagicCivilization.xcodeproj" ] || { echo -e "${RED}Xcode project not found${NC}"; return 1; }
echo -e "${GREEN} ✓ Xcode project exported${NC}"
@ -172,7 +172,7 @@ cmd_install_android() {
echo ""
"$REPO_ROOT/tools/export-single.sh" android "$VERSION" $EXPORT_FLAG 2>&1 || { echo -e "${RED}Export failed.${NC}"; return 1; }
local APK="$REPO_ROOT/builds/$VERSION/android/MagicCivilization.apk"
local APK="$REPO_ROOT/.local/build/godot/$VERSION/android/MagicCivilization.apk"
[ -f "$APK" ] || { echo -e "${RED}APK not found: $APK${NC}"; return 1; }
echo -e "${GREEN} ✓ Exported $(du -h "$APK" | cut -f1)${NC}"

View file

@ -1,3 +1,8 @@
[build]
# Build artifacts live outside src/ in the repo's .local/ tree (gitignored).
# Prevents 25GB of cargo target/ from polluting src/simulator/.
target-dir = "../../.local/build/rust"
[env]
# Rayon thread pool overhead exceeds benefit for small test fixtures (1x1, 2x2 grids).
# This sets RAYON_NUM_THREADS=1 for all cargo commands in this workspace, making rayon

View file

@ -12,19 +12,19 @@ mkdir -p "$ADDON_DIR"
case "$TARGET" in
x86_64-unknown-linux-gnu)
rm -f "$ADDON_DIR/libmagic_civ_physics.x86_64.so"
cp "$SCRIPT_DIR/target/$TARGET/release/libmagic_civ_physics_gdext.so" \
cp "$SCRIPT_DIR/../../.local/build/rust/$TARGET/release/libmagic_civ_physics_gdext.so" \
"$ADDON_DIR/libmagic_civ_physics.x86_64.so"
echo "Copied → engine/addons/magic_civ_physics/libmagic_civ_physics.x86_64.so"
;;
x86_64-pc-windows-gnu|x86_64-pc-windows-msvc)
rm -f "$ADDON_DIR/magic_civ_physics.x86_64.dll"
cp "$SCRIPT_DIR/target/$TARGET/release/magic_civ_physics_gdext.dll" \
cp "$SCRIPT_DIR/../../.local/build/rust/$TARGET/release/magic_civ_physics_gdext.dll" \
"$ADDON_DIR/magic_civ_physics.x86_64.dll"
echo "Copied → engine/addons/magic_civ_physics/magic_civ_physics.x86_64.dll"
;;
aarch64-apple-darwin|x86_64-apple-darwin)
rm -f "$ADDON_DIR/libmagic_civ_physics.dylib"
cp "$SCRIPT_DIR/target/$TARGET/release/libmagic_civ_physics_gdext.dylib" \
cp "$SCRIPT_DIR/../../.local/build/rust/$TARGET/release/libmagic_civ_physics_gdext.dylib" \
"$ADDON_DIR/libmagic_civ_physics.dylib"
echo "Copied → engine/addons/magic_civ_physics/libmagic_civ_physics.dylib"
;;