This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
comptaplan_app/tools/jenkins-build-android.sh
2021-11-27 17:09:39 +01:00

30 lines
653 B
Bash
Executable File

#!/bin/bash
# debug/release
BUILDMODE=${BUILDMODE:-debug}
# LOCAL/DEV/PROD
APP_TITLE=${APP_TITLE:-}
APP_URI=${APP_URI:-}
APP_COLOR=${APP_COLOR:-}
cat << EOF > android/local.properties
flutter.sdk=/home/developer/flutter
sdk.dir=/home/developer/android
flutter.buildMode=${BUILDMODE}
flutter.versionName=
flutter.versionCode=
EOF
cat << EOF > android/key.properties
storePassword=jenkins.fteamdev
keyPassword=jenkins.fteamdev
keyAlias=jenkins.fteamdev
storeFile=/var/run/secrets/signing_keystore.jks
EOF
pwd
flutter build appbundle --dart-define="APP_TITLE=${APP_TITLE}" --dart-define="APP_URI=${APP_URI}" --dart-define="APP_COLOR=${APP_COLOR}"