2023-01-19 23:14:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
CAKEWALLET="cakewallet"
|
|
|
|
DIR=`pwd`
|
|
|
|
|
|
|
|
if [ -z "$APP_LINUX_TYPE" ]; then
|
|
|
|
echo "Please set APP_LINUX_TYPE"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-11-14 23:17:15 +00:00
|
|
|
../android/app_properties.sh
|
|
|
|
../android/app_icon.sh
|
|
|
|
../android/manifest.sh
|
|
|
|
../android/inject_app_details.sh
|
|
|
|
|
2023-01-19 23:14:46 +00:00
|
|
|
cd ../.. # go to root
|
|
|
|
CONFIG_ARGS=""
|
|
|
|
|
|
|
|
case $APP_LINUX_TYPE in
|
|
|
|
$CAKEWALLET)
|
2023-10-06 12:43:39 +00:00
|
|
|
CONFIG_ARGS="--monero --bitcoin --ethereum --nano --excludeFlutterSecureStorage";;
|
2023-01-19 23:14:46 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
cp -rf pubspec_description.yaml pubspec.yaml
|
|
|
|
flutter pub get
|
2023-11-14 23:17:15 +00:00
|
|
|
dart run tool/generate_pubspec.dart
|
2023-01-19 23:14:46 +00:00
|
|
|
flutter pub get
|
2023-11-14 23:17:15 +00:00
|
|
|
dart run tool/configure.dart $CONFIG_ARGS
|
2023-01-19 23:14:46 +00:00
|
|
|
sed -i '0,/version: 0.0.0/s//version: '"${APP_LINUX_VERSION}"'+'"${APP_LINUX_BUILD_NUMBER}"'/' pubspec.yaml
|
|
|
|
cd $DIR
|