Files
tatuchat/scripts/release-ios-testflight.sh
Welton Moura 0037b0b9cf
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
Initial commit
2026-09-11 15:59:56 -03:00

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