Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

[flutter]: support debug on linux-aarch64

annie447766f9cb61
diff --git a/Makefile.toml b/Makefile.toml
index 5f829dbbc4..3b47fe42bb 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -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 = [
diff --git a/scripts/build_sdk.sh b/scripts/build_sdk.sh
index 5768ea74b4..3cd5de0592 100755
--- a/scripts/build_sdk.sh
+++ b/scripts/build_sdk.sh
@@ -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
diff --git a/scripts/makefile/flutter.toml b/scripts/makefile/flutter.toml
index 233b5bcba7..fa9d8f44ff 100644
--- a/scripts/makefile/flutter.toml
+++ b/scripts/makefile/flutter.toml
@@ -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}
""",
]