mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
68a057b91b
* Add version code and version name to android configuration * Update inject_app_details.sh configure script to run on Linux
13 lines
581 B
Bash
Executable file
13 lines
581 B
Bash
Executable file
#!/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
|
|
sed -i "0,/version:/{s/__versionCode__/${APP_ANDROID_BUILD_NUMBER}/}" ./android/app/src/main/AndroidManifest.xml
|
|
sed -i "0,/version:/{s/__versionName__/${APP_ANDROID_VERSION}/}" ./android/app/src/main/AndroidManifest.xml
|
|
cd scripts/android
|