[Android] Rework flutter build command
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
BUILD_TYPE=${1:-debug}
|
||||
BUILD_TYPE=${1:-release}
|
||||
BUILD_NAME=${2:-0.0.0}
|
||||
BUILD_NUMBER="$BUILD_NAME-$(date +%Y%m%d%H%M%S)"
|
||||
|
||||
|
||||
APK_DIR="../build/app/outputs/flutter-apk"
|
||||
BASE_NAME="org.igox.apps.android.busylight-buddy"
|
||||
|
||||
flutter build apk --$BUILD_TYPE
|
||||
flutter build apk --$BUILD_TYPE --build-name=$BUILD_NAME --build-number=$BUILD_NUMBER --target-platform android-arm,android-arm64,android-x64
|
||||
|
||||
# Rename APK
|
||||
OLD_APK="$APK_DIR/app-$BUILD_TYPE.apk"
|
||||
|
||||
Reference in New Issue
Block a user