new build scripts, #noticket

This commit is contained in:
Jenkins
2019-11-29 11:36:56 +07:00
parent f535ec5fe0
commit 11893ccb26
5 changed files with 89 additions and 12 deletions

View File

@@ -1,18 +1,46 @@
PHONY: all
#!make
all: build-release upload
include build.variables
export $(shell sed 's/=.*//' build.variables)
upload-release: build-release
adb install -r build/app/outputs/apk/app-release.apk
FLAGS :=
upload: build-debug
adb install -r build/app/outputs/apk/app-debug.apk
build-debug:
flutter build apk --debug
android-apps: pub-get apk-prod apk-ote apk-int apk-staging apk-testing apk-autobonus apk-racib archive
build-release:
flutter build apk
archive:
rm -fR output
mkdir -p output
rsync build/app/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 build clean
flutter clean
rm -fR output
bootstrap:
flutter version $(FLUTTER_VERSION)