mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-30 16:00:53 +08:00

Now whenever we run 'flutter run' or 'flutter build' we need to pass the flavour flag. It seems there is no way to set a default flavour. This is required as I want to be able to not have to reconfigure my local GitJournal app (which I use for note-taking) vs the one I'm developing where I might change many different settings for the basis of testing. Specially since I don't use Github/GitLab to store my notes, so the setup process is a bit more involved.
10 lines
243 B
Bash
Executable File
10 lines
243 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
BUILD_NUM=`git rev-list --count HEAD`
|
|
echo "Build Number: $BUILD_NUM"
|
|
|
|
flutter build appbundle --flavor prod --build-number=$BUILD_NUM --verbose
|
|
flutter build apk --flavor prod --build-number=$BUILD_NUM --verbose
|