File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ -n " $2 " ]; then
4+ export BUILD_DIR_PATH=$2
5+ else
6+ export BUILD_DIR_PATH=" $HOME /projects/virtual-flight-throttle/build"
7+ fi
8+
9+ if [ -n " $3 " ]; then
10+ export BUNDLETOOL_PATH=$3
11+ else
12+ export BUNDLETOOL_PATH=" $HOME /Android/bundletool-all-0.12.0.jar"
13+ fi
14+
15+ echo " [i] start build appbundle..."
16+
17+ ~ /flutter/bin/flutter build appbundle
18+ cp ./build/app/outputs/bundle/release/app-release.aab " $BUILD_DIR_PATH " /appbundle/vft-flight-throttle-" $1 " .aab
19+
20+ echo " [o] succeed build appbundle."
21+
22+ echo " [i]start build mono-apks..."
23+
24+ java -jar " $BUNDLETOOL_PATH " build-apks --bundle=./build/app/outputs/bundle/release/app-release.aab --output=" $BUILD_DIR_PATH " /apk/vft-flight-throttle-" $1 " .apks --mode=universal
25+ unzip " $BUILD_DIR_PATH " /apk/vft-flight-throttle-" $1 " .apks -d " $BUILD_DIR_PATH " /apk/
26+
27+ echo " [o] succeed build mono-apks."
28+
29+ rm " $BUILD_DIR_PATH " /apk/toc.pb
30+ rm " $BUILD_DIR_PATH " /apk/vft-flight-throttle-" $1 " .apks
31+
32+ mv " $BUILD_DIR_PATH " /apk/universal.apk " $BUILD_DIR_PATH " /apk/vft-flight-throttle-" $1 " .apk
33+
34+ echo " [o] succeed build appbundle and apk with version $1 "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ -n " $2 " ]; then
4+ export BUILD_DIR_PATH=$2
5+ else
6+ export BUILD_DIR_PATH=" $HOME /projects/virtual-flight-throttle/build"
7+ fi
8+
9+ echo " [i] start build ipa..."
10+
11+ ~ /flutter/bin/flutter build ipa
12+ cp ./build/app/outputs/bundle/release/app-release.ipa " $BUILD_DIR_PATH " /ipa/vft-flight-throttle-" $1 " .ipa
13+
14+ echo " [o] succeed build ipa with version $1 "
You can’t perform that action at this time.
0 commit comments