dev
sh 44 lines 1.64 KB
Raw
1 #!/bin/bash
2 source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/functions.sh"
3 set -x -e
4 MONERO_COM="monero.com"
5 CAKEWALLET="cakewallet"
6 DIR=`pwd`
7
8 if [ -z "$APP_IOS_TYPE" ]; then
9 echo "Please set APP_IOS_TYPE"
10 exit 1
11 fi
12 cd ..
13 ./gen_android_manifest.sh
14 cd .. # go to root
15 cp -rf ./ios/Runner/InfoBase.plist ./ios/Runner/Info.plist
16 /usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName ${APP_IOS_NAME}" ./ios/Runner/Info.plist
17 /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier ${APP_IOS_BUNDLE_ID}" ./ios/Runner/Info.plist
18 /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${APP_IOS_VERSION}" ./ios/Runner/Info.plist
19 /usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${APP_IOS_BUILD_NUMBER}" ./ios/Runner/Info.plist
20
21 /usr/libexec/PlistBuddy -c "Add :CFBundleURLTypes:1:CFBundleURLName string ${APP_IOS_TYPE}" ./ios/Runner/Info.plist
22 /usr/libexec/PlistBuddy -c "Add :CFBundleURLTypes:1:CFBundleURLSchemes array" ./ios/Runner/Info.plist
23 /usr/libexec/PlistBuddy -c "Add :CFBundleURLTypes:1:CFBundleURLSchemes: string ${APP_IOS_TYPE}" ./ios/Runner/Info.plist
24 universal_sed "s/PRODUCT_BUNDLE_IDENTIFIER = .*;/PRODUCT_BUNDLE_IDENTIFIER = $APP_IOS_BUNDLE_ID;/g" ./ios/Runner.xcodeproj/project.pbxproj
25
26 CONFIG_ARGS=""
27
28 case $APP_IOS_TYPE in
29 $MONERO_COM)
30 CONFIG_ARGS="--monero"
31 ;;
32
33 $CAKEWALLET)
34 CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --solana --tron --wownero --zano --decred --dogecoin --base --zcash --arbitrum --bsc"
35 ;;
36 esac
37
38 cp -rf pubspec_description.yaml pubspec.yaml
39 flutter pub get
40 dart run tool/generate_pubspec.dart
41 flutter pub get
42 dart run tool/configure.dart $CONFIG_ARGS
43 cd $DIR
44 $DIR/app_icon.sh