32 lines
860 B
Bash
32 lines
860 B
Bash
#!/bin/sh -ve
|
|
|
|
# SPDX-FileCopyrightText: 2019-Present Christian Kußowski
|
|
# SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# Enable FCM and get packages
|
|
flutter pub add fcm_shared_isolate
|
|
sed -i '' 's,//<GOOGLE_SERVICES>,,g' lib/utils/background_push.dart
|
|
flutter clean
|
|
flutter pub get
|
|
|
|
# Reload all cocoapods
|
|
(
|
|
cd ios
|
|
rm -rf Pods Podfile.lock
|
|
pod install
|
|
pod update
|
|
)
|
|
|
|
# pub get hardcodes FlutterGeneratedPluginSwiftPackage to iOS 13.0; regenerate so
|
|
# it picks up the project's IPHONEOS_DEPLOYMENT_TARGET before xcodebuild.
|
|
flutter build ios --config-only --release
|
|
|
|
# Build and open archive dialog
|
|
xcodebuild \
|
|
-workspace ios/Runner.xcworkspace \
|
|
-scheme Runner \
|
|
-configuration Release \
|
|
-archivePath build/Runner.xcarchive \
|
|
archive && open -a Xcode build/Runner.xcarchive |