18 lines
677 B
Bash
Executable File
18 lines
677 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
|
|
rm -rf "$ROOT/build/ios" "$ROOT/build/ios-release"
|
|
rm -rf "$ROOT/ios/Assets.xcassets/AppIcon.appiconset"
|
|
rm -rf "$ROOT/ios/YrXtals.xcodeproj"
|
|
|
|
if [ "${1:-}" = "--cargo" ]; then
|
|
cargo clean --target aarch64-apple-ios --release 2>/dev/null || true
|
|
cargo clean --target aarch64-apple-ios-sim --release 2>/dev/null || true
|
|
cargo clean --target aarch64-apple-ios --profile release-debug 2>/dev/null || true
|
|
cargo clean --target aarch64-apple-ios-sim --profile release-debug 2>/dev/null || true
|
|
fi
|
|
|
|
echo "cleaned: build/ios, build/ios-release, AppIcon.appiconset, YrXtals.xcodeproj"
|