fix path quoting in build scripts for directories with spaces
This commit is contained in:
parent
752f5a1595
commit
ae20a6d5fd
4
build.sh
4
build.sh
|
|
@ -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 \
|
||||
|
|
|
|||
4
debug.sh
4
debug.sh
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue