mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Update build scripts for android
This commit is contained in:
parent
da170118a8
commit
26f6be0ce6
3 changed files with 35 additions and 22 deletions
|
@ -7,25 +7,5 @@ fi
|
|||
|
||||
./app_properties.sh
|
||||
./app_icon.sh
|
||||
|
||||
CONFIG_ARGS=""
|
||||
|
||||
case $APP_ANDROID_TYPE in
|
||||
$MONERO_COM)
|
||||
CONFIG_ARGS="--monero"
|
||||
;;
|
||||
$CAKEWALLET)
|
||||
CONFIG_ARGS="--monero --bitcoin"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd ../..
|
||||
|
||||
cp -rf pubspec_description.yaml pubspec.yaml
|
||||
flutter pub get
|
||||
flutter pub run tool/generate_pubspec.dart
|
||||
flutter pub get
|
||||
flutter packages pub run tool/configure.dart $CONFIG_ARGS
|
||||
|
||||
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./pubspec.yaml
|
||||
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./android/app/src/main/AndroidManifest.xml
|
||||
./pubspec_gen.sh
|
||||
./inject_app_details.sh
|
11
scripts/android/inject_app_details.sh
Executable file
11
scripts/android/inject_app_details.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$APP_ANDROID_TYPE" ]; then
|
||||
echo "Please set APP_ANDROID_TYPE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ../..
|
||||
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./pubspec.yaml
|
||||
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./android/app/src/main/AndroidManifest.xml
|
||||
cd scripts/android
|
22
scripts/android/pubspec_gen.sh
Executable file
22
scripts/android/pubspec_gen.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
MONERO_COM=monero.com
|
||||
CAKEWALLET=cakewallet
|
||||
CONFIG_ARGS=""
|
||||
|
||||
case $APP_ANDROID_TYPE in
|
||||
$MONERO_COM)
|
||||
CONFIG_ARGS="--monero"
|
||||
;;
|
||||
$CAKEWALLET)
|
||||
CONFIG_ARGS="--monero --bitcoin"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd ../..
|
||||
cp -rf pubspec_description.yaml pubspec.yaml
|
||||
flutter pub get
|
||||
flutter pub run tool/generate_pubspec.dart
|
||||
flutter pub get
|
||||
flutter packages pub run tool/configure.dart $CONFIG_ARGS
|
||||
cd scripts/android
|
Loading…
Reference in a new issue