mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
29 lines
810 B
Bash
Executable file
29 lines
810 B
Bash
Executable file
#!/bin/bash
|
|
|
|
MONERO_COM="monero.com"
|
|
CAKEWALLET="cakewallet"
|
|
DIR=$(dirname "$0")
|
|
|
|
if [ -z "$APP_IOS_TYPE" ]; then
|
|
echo "Please set APP_IOS_TYPE"
|
|
exit 1
|
|
fi
|
|
|
|
cd ../.. # go to root
|
|
/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
|
|
cd $DIR
|
|
CONFIG_ARGS=""
|
|
|
|
case $APP_IOS_TYPE in
|
|
$MONERO_COM)
|
|
CONFIG_ARGS="--monero"
|
|
;;
|
|
$CAKEWALLET)
|
|
CONFIG_ARGS="--monero --bitcoin"
|
|
;;
|
|
esac
|
|
|
|
flutter packages pub run tool/configure.dart $CONFIG_ARGS
|