cake_wallet/scripts/ios/app_config.sh

36 lines
996 B
Bash
Raw Normal View History

2022-01-04 14:57:19 +00:00
#!/bin/bash
MONERO_COM="monero.com"
CAKEWALLET="cakewallet"
2022-01-06 11:20:06 +00:00
DIR=`pwd`
2022-01-04 14:57:19 +00:00
if [ -z "$APP_IOS_TYPE" ]; then
echo "Please set APP_IOS_TYPE"
exit 1
fi
cd ../.. # go to root
cp -rf ./ios/Runner/InfoBase.plist ./ios/Runner/Info.plist
2022-01-04 14:57:19 +00:00
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName ${APP_IOS_NAME}" ./ios/Runner/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier ${APP_IOS_BUNDLE_ID}" ./ios/Runner/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${APP_IOS_VERSION}" ./ios/Runner/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${APP_IOS_BUILD_NUMBER}" ./ios/Runner/Info.plist
CONFIG_ARGS=""
case $APP_IOS_TYPE in
$MONERO_COM)
CONFIG_ARGS="--monero"
;;
$CAKEWALLET)
CONFIG_ARGS="--monero --bitcoin"
;;
esac
2022-01-11 16:46:25 +00:00
cp -rf pubspec_description.yaml pubspec.yaml
flutter pub get
flutter pub run tool/generate_pubspec.dart
2022-01-11 16:46:25 +00:00
flutter pub get
2022-01-04 14:57:19 +00:00
flutter packages pub run tool/configure.dart $CONFIG_ARGS
2022-01-06 11:20:06 +00:00
cd $DIR
$DIR/app_icon.sh