Files
GitJournal/scripts/build.sh
Vishesh Handa e5c3bb3fdb Add a 'dev' and 'prod' build flavour
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.
2019-12-11 20:45:51 +01:00

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