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
cghislai 80f30b02b8
Some checks failed
gestemps/comptaplanapp/pipeline/head There was a failure building this commit
fix
2021-11-27 18:14:32 +01:00

31 lines
663 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/gestemps/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}"