Files
wt 2c278044bb
Android CI / Build and Test (push) Failing after 21m18s
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s
delete CloudKit and added BalanceFlutter
2026-10-28 15:37:32 +07:00

24 lines
981 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
platform="${1:-web}"
if [[ $# -gt 0 ]]; then shift; fi
flutter_bin="${FLUTTER_BIN:-flutter}"
case "$platform" in
web|android|ios|macos|windows|linux) ;;
watchos)
# watchOS uses the existing companion app; Flutter has no watchOS runner.
exec xcodebuild -project ../Balance/Balance.xcodeproj -scheme BalanceWatch \
-configuration Release -sdk watchsimulator -destination 'generic/platform=watchOS Simulator' \
-derivedDataPath build/watchos CODE_SIGNING_ALLOWED=NO build "$@"
;;
*) echo "Usage: $0 {web|android|ios|macos|windows|linux|watchos} [build options]" >&2; exit 2 ;;
esac
"$flutter_bin" pub get
case "$platform" in
web) "$flutter_bin" build web --release --no-web-resources-cdn "$@" ;;
android) "$flutter_bin" build apk --release "$@" ;;
ios) "$flutter_bin" build ios --release --no-codesign "$@" ;;
*) "$flutter_bin" build "$platform" --release "$@" ;;
esac