Files
GitJournal/scripts/build_android.sh
Vishesh Handa a400f2243a Analytics: Add install source
This way I can get an estimate of fdroid vs google-play users
2021-09-28 14:22:17 +02:00

16 lines
513 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set -eux pipefail
BUILD_NUM=$(git rev-list --count HEAD)
echo "Build Number: $BUILD_NUM"
flutter build appbundle --flavor prod --build-number="$BUILD_NUM" --dart-define=INSTALL_SOURCE=playstore --verbose
# Also building the apk, as it's useful for non Google Play users
flutter build apk --flavor prod --build-number="$BUILD_NUM" --dart-define=INSTALL_SOURCE=fdroid --verbose