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 exit 1
fi 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 --- # --- App icon from pre-rendered PNGs ---
ICONS="$ROOT/assets/icon_sources" ICONS="$ROOT/assets/icon_sources"
@ -59,7 +59,7 @@ echo "Compiling Swift (release)..."
swiftc \ swiftc \
-target arm64-apple-macosx14.0 \ -target arm64-apple-macosx14.0 \
-sdk "$SDK" \ -sdk "$SDK" \
$RUST_FLAGS \ "${RUST_FLAGS[@]}" \
-framework Cocoa \ -framework Cocoa \
-framework SwiftUI \ -framework SwiftUI \
-O \ -O \

View File

@ -15,7 +15,7 @@ RUST_LIB="$ROOT/core/target/debug"
echo "Building Rust core (debug)..." echo "Building Rust core (debug)..."
cd "$ROOT/core" && cargo build cd "$ROOT/core" && cargo build
cd "$ROOT" 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 --- # --- Bundle structure ---
mkdir -p "$MACOS" "$RESOURCES" mkdir -p "$MACOS" "$RESOURCES"
@ -26,7 +26,7 @@ echo "Compiling Swift (debug)..."
swiftc \ swiftc \
-target arm64-apple-macosx14.0 \ -target arm64-apple-macosx14.0 \
-sdk "$SDK" \ -sdk "$SDK" \
$RUST_FLAGS \ "${RUST_FLAGS[@]}" \
-framework Cocoa \ -framework Cocoa \
-framework SwiftUI \ -framework SwiftUI \
-Onone -g \ -Onone -g \