rustdesk/flutter/build_android.sh

11 lines
747 B
Bash
Raw Permalink Normal View History

2021-04-08 12:59:55 +08:00
#!/usr/bin/env bash
2023-02-20 23:30:36 +08:00
2023-02-21 15:00:59 +08:00
MODE=${MODE:=release}
2023-02-20 02:23:58 +08:00
$ANDROID_NDK_HOME/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip android/app/src/main/jniLibs/arm64-v8a/*
2023-02-20 23:30:36 +08:00
flutter build apk --target-platform android-arm64,android-arm --${MODE} --obfuscate --split-debug-info ./split-debug-info
flutter build apk --split-per-abi --target-platform android-arm64,android-arm --${MODE} --obfuscate --split-debug-info ./split-debug-info
flutter build appbundle --target-platform android-arm64,android-arm --${MODE} --obfuscate --split-debug-info ./split-debug-info
2022-01-20 15:57:54 +08:00
# build in linux
# $ANDROID_NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip android/app/src/main/jniLibs/arm64-v8a/*