fix path quoting in build scripts for directories with spaces

This commit is contained in:
jess 2026-04-06 21:35:11 -07:00
parent 752f5a1595
commit ae20a6d5fd
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ if [ ! -f "$RUST_LIB/libswiftly_core.a" ]; then
exit 1
fi
RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core"
RUST_FLAGS=(-import-objc-header "$ROOT/core/include/swiftly.h" -L "$RUST_LIB" -lswiftly_core)
# --- App icon from pre-rendered PNGs ---
ICONS="$ROOT/assets/icon_sources"
@ -59,7 +59,7 @@ echo "Compiling Swift (release)..."
swiftc \
-target arm64-apple-macosx14.0 \
-sdk "$SDK" \
$RUST_FLAGS \
"${RUST_FLAGS[@]}" \
-framework Cocoa \
-framework SwiftUI \
-O \

View File

@ -15,7 +15,7 @@ RUST_LIB="$ROOT/core/target/debug"
echo "Building Rust core (debug)..."
cd "$ROOT/core" && cargo build
cd "$ROOT"
RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core"
RUST_FLAGS=(-import-objc-header "$ROOT/core/include/swiftly.h" -L "$RUST_LIB" -lswiftly_core)
# --- Bundle structure ---
mkdir -p "$MACOS" "$RESOURCES"
@ -26,7 +26,7 @@ echo "Compiling Swift (debug)..."
swiftc \
-target arm64-apple-macosx14.0 \
-sdk "$SDK" \
$RUST_FLAGS \
"${RUST_FLAGS[@]}" \
-framework Cocoa \
-framework SwiftUI \
-Onone -g \