[flutter]: support debug on linux-aarch64

This commit is contained in:
annie 2021-11-19 22:40:57 +08:00
parent 8660ade554
commit 447766f9cb
3 changed files with 20 additions and 1 deletions

View File

@ -67,6 +67,7 @@ BUILD_FLAG = "debug"
CRATE_TYPE = "cdylib"
FLUTTER_OUTPUT_DIR = "Debug"
SDK_EXT = "so"
LINUX_ARCH = "x64"
[env.production-linux-x86]
BUILD_FLAG = "release"
@ -75,6 +76,16 @@ RUST_COMPILE_TARGET = "x86_64-unknown-linux-gnu"
CRATE_TYPE = "cdylib"
FLUTTER_OUTPUT_DIR = "Release"
SDK_EXT = "so"
LINUX_ARCH = "x64"
[env.development-linux-aarch64]
TARGET_OS = "linux"
RUST_COMPILE_TARGET = "aarch64-unknown-linux-gnu"
BUILD_FLAG = "debug"
CRATE_TYPE = "cdylib"
FLUTTER_OUTPUT_DIR = "Debug"
SDK_EXT = "so"
LINUX_ARCH = "arm64"
[env.production-linux-aarch64]
BUILD_FLAG = "release"
@ -83,6 +94,7 @@ RUST_COMPILE_TARGET = "aarch64-unknown-linux-gnu"
CRATE_TYPE = "cdylib"
FLUTTER_OUTPUT_DIR = "Release"
SDK_EXT = "so"
LINUX_ARCH = "arm64"
[tasks.echo_env]
script = [

View File

@ -21,3 +21,10 @@ cargo make --profile development-mac flowy-sdk-dev
# for window
#cargo make --profile development-windows flowy-sdk-dev
# for linux aarch64
#cargo make --profile development-linux-x86 flowy-sdk-dev
# for linux aarch64
#cargo make --profile development-linux-aarch64 flowy-sdk-dev

View File

@ -50,7 +50,7 @@ script = [
mkdir -p ${output_path}
product=${PRODUCT_NAME}
cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/build/${TARGET_OS}/x64/${BUILD_FLAG}/bundle \
cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/build/${TARGET_OS}/${LINUX_ARCH}/${BUILD_FLAG}/bundle \
${output_path}/${product}
""",
]