zwallet/configure.sh

32 lines
707 B
Bash
Executable File

export COIN=$1
case $COIN in
ycash)
export APP_TITLE=YWallet
export APP_NAME=ywallet
export FEATURE=ycash
;;
zcashtest)
export APP_TITLE=ZWalletTest
export APP_NAME=zwallettest
export FEATURE=zcashtest
;;
zcash)
export APP_TITLE=ZWallet
export APP_NAME=zwallet
export FEATURE=zcash
;;
esac
cp assets/$COIN.png assets/icon.png
cp lib/coin/$COIN.dart lib/coin/coindef.dart
cp native/zcash-sync/src/coindef/$COIN.rs native/zcash-sync/src/coin.rs
mo pubspec.yaml.tpl > pubspec.yaml
flutter pub get
flutter pub run change_app_package_name:main me.hanh.$APP_NAME
flutter pub run flutter_launcher_icons:main
flutter pub run flutter_launcher_name:main
flutter pub run build_runner build