35 lines
439 B
Bash
Executable file
35 lines
439 B
Bash
Executable file
echo "1. Linux"
|
|
echo "2. Android"
|
|
echo "3. All"
|
|
echo ""
|
|
echo -n "Target? "
|
|
read target
|
|
|
|
build() {
|
|
set -x
|
|
flutter build $@
|
|
set +x
|
|
}
|
|
|
|
build_linux() {
|
|
build linux
|
|
}
|
|
|
|
build_android() {
|
|
build apk --split-per-abi
|
|
}
|
|
|
|
set -x
|
|
flutter pub get
|
|
flutter pub run build_runner build
|
|
set +x
|
|
|
|
case "$target" in
|
|
1) build_linux;;
|
|
2) build_android;;
|
|
3)
|
|
build_linux &
|
|
build_android &
|
|
wait
|
|
;;
|
|
esac |