Files
checker/Makefile
2020-03-04 11:49:20 +07:00

47 lines
1.5 KiB
Makefile

#!make
include build.variables
export $(shell sed 's/=.*//' build.variables)
FLAGS :=
android-apps: pub-get apk-prod apk-ote apk-int apk-staging apk-testing apk-autobonus apk-racib archive
archive:
rm -fR output
mkdir -p output
rsync android/app/build/outputs/apk/*/*/*.apk output
apk-prod:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor dinect || echo "prod"
apk-ote:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor dinect_ote || echo "ote"
apk-int:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor dinect_int || echo "int"
apk-staging:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor dinect_staging || echo "staging"
apk-testing:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor dinect_testing || echo "testing"
apk-autobonus:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor autobonus || echo "autobonus"
apk-racib:
flutter build apk --split-per-abi --release --build-name $(VERSION_NAME) $(FLAGS) --build-number $(VERSION) --flavor racib || echo "racib"
pub-get:
flutter pub get
clean:
flutter clean
rm -fR output
bootstrap:
flutter version $(FLUTTER_VERSION)