Prepare App Store 1.0 build 4

This commit is contained in:
2026-08-17 16:50:30 +02:00
parent f894d43eb6
commit 0b7c938b23
19 changed files with 191 additions and 62 deletions

View File

@@ -2,9 +2,6 @@
set -euo pipefail
export CARGO_TARGET_DIR="$DERIVED_FILE_DIR/cargo"
export RUSTC="$(rustup which --toolchain stable rustc)"
export RUSTDOC="$(rustup which --toolchain stable rustdoc)"
if [[ "$CONFIGURATION" == "Debug" ]]; then
profile=debug
else
@@ -21,10 +18,16 @@ fi
libraries=()
for arch in $ARCHS; do
toolchain=stable
cargo_args=(--locked)
if [[ "$package" == "ironstorage-watch-apple" && "$arch" == "arm64" && "${LLVM_TARGET_TRIPLE_SUFFIX:-}" == "-simulator" ]]; then
target=aarch64-apple-watchos-sim
elif [[ "$package" == "ironstorage-watch-apple" && "$arch" == "arm64" ]]; then
target=aarch64-apple-watchos
elif [[ "$package" == "ironstorage-watch-apple" && "$arch" == "arm64_32" ]]; then
target=arm64_32-apple-watchos
toolchain=nightly
cargo_args=(-Z build-std=std,panic_abort --locked)
elif [[ "$package" == "ironstorage-watch-apple" && "$arch" == "x86_64" ]]; then
target=x86_64-apple-watchos-sim
elif [[ "$arch" == "arm64" && "${LLVM_TARGET_TRIPLE_SUFFIX:-}" == "-simulator" ]]; then
@@ -38,11 +41,13 @@ for arch in $ARCHS; do
exit 1
fi
export RUSTC="$(rustup which --toolchain "$toolchain" rustc)"
export RUSTDOC="$(rustup which --toolchain "$toolchain" rustdoc)"
if [[ "$profile" == "debug" ]]; then
rustup run stable cargo build --locked \
rustup run "$toolchain" cargo build "${cargo_args[@]}" \
--target "$target" --package "$package" --lib
else
rustup run stable cargo build --locked --release \
rustup run "$toolchain" cargo build "${cargo_args[@]}" --release \
--target "$target" --package "$package" --lib
fi
libraries+=("$CARGO_TARGET_DIR/$target/$profile/lib$library.a")