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
|
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 \
|
||||||
|
|
|
||||||
4
debug.sh
4
debug.sh
|
|
@ -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 \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue