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.

rename some tasks' name

appflowy054fa4c95240
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 7425e81ea1..01ea4f9516 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -41,7 +41,7 @@ jobs:
- name: Build
run: |
cd frontend
- cargo make --profile production-desktop-mac-x86 appflowy
+ cargo make --profile production-mac-x86 appflowy
build-ubuntu:
runs-on: ubuntu-latest
steps:
diff --git a/doc/BUILD_ON_WINDOWS.md b/doc/BUILD_ON_WINDOWS.md
index b10a25bdbc..dfe53b6251 100644
--- a/doc/BUILD_ON_WINDOWS.md
+++ b/doc/BUILD_ON_WINDOWS.md
@@ -52,16 +52,16 @@ cargo make -p development-windows pb
10. Build flowy-sdk (dart-ffi)
```shell
# for development
-cargo make --profile development-desktop-windows-x86 flowy-sdk-dev
+cargo make --profile development-windows-x86 flowy-sdk-dev
# for production
-cargo make --profile production-desktop-windows-x86 flowy-sdk-release
+cargo make --profile production-windows-x86 flowy-sdk-release
```
11. Build app_flowy
```shell
# for development
-cargo make -p development-desktop-windows-x86 appflowy-windows-dev
+cargo make -p development-windows-x86 appflowy-windows-dev
# for production
-cargo make -p production-desktop-windows-x86 appflowy-windows
+cargo make -p production-windows-x86 appflowy-windows
```
## Step 3: Build Server side application (optional if you don't need to host web service locally)
diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml
index d6f293c27a..181cb51f3e 100644
--- a/frontend/Makefile.toml
+++ b/frontend/Makefile.toml
@@ -27,14 +27,14 @@ BUILD_FLAG = "debug"
FLUTTER_OUTPUT_DIR = "Debug"
PRODUCT_EXT = "app"
-[env.production-desktop-mac-aarch64]
+[env.production-mac-aarch64]
BUILD_FLAG = "release"
TARGET_OS = "macos"
RUST_COMPILE_TARGET = "aarch64-apple-darwin"
FLUTTER_OUTPUT_DIR = "Release"
PRODUCT_EXT = "app"
-[env.production-desktop-mac-x86]
+[env.production-mac-x86]
BUILD_FLAG = "release"
TARGET_OS = "macos"
RUST_COMPILE_TARGET = "x86_64-apple-darwin"
@@ -42,7 +42,7 @@ FLUTTER_OUTPUT_DIR = "Release"
PRODUCT_EXT = "app"
-[env.development-desktop-windows-x86]
+[env.development-windows-x86]
TARGET_OS = "windows"
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
BUILD_FLAG = "debug"
@@ -51,7 +51,7 @@ PRODUCT_EXT = "exe"
CRATE_TYPE = "cdylib"
SDK_EXT = "dll"
-[env.production-desktop-windows-x86]
+[env.production-windows-x86]
BUILD_FLAG = "release"
TARGET_OS = "windows"
RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc"
diff --git a/frontend/rust-lib/flowy-sdk/src/lib.rs b/frontend/rust-lib/flowy-sdk/src/lib.rs
index d736d37c54..6df2e4d793 100644
--- a/frontend/rust-lib/flowy-sdk/src/lib.rs
+++ b/frontend/rust-lib/flowy-sdk/src/lib.rs
@@ -59,6 +59,7 @@ fn crate_log_filter(level: Option<String>) -> String {
#[derive(Clone)]
pub struct FlowySDK {
+ #[allow(dead_code)]
config: FlowySDKConfig,
pub user_session: Arc<UserSession>,
pub flowy_document: Arc<FlowyDocument>,
diff --git a/frontend/scripts/build_sdk.cmd b/frontend/scripts/build_sdk.cmd
index e27b4cd3e4..5ddcbd82ab 100644
--- a/frontend/scripts/build_sdk.cmd
+++ b/frontend/scripts/build_sdk.cmd
@@ -1,3 +1,3 @@
echo "Start building rust sdk"
rustup show
-cargo make --profile development-desktop-windows-x86 flowy-sdk-dev
\ No newline at end of file
+cargo make --profile development-windows-x86 flowy-sdk-dev
\ No newline at end of file
diff --git a/frontend/scripts/makefile/desktop.toml b/frontend/scripts/makefile/desktop.toml
index 981e4a89ce..1f1c16079c 100644
--- a/frontend/scripts/makefile/desktop.toml
+++ b/frontend/scripts/makefile/desktop.toml
@@ -2,7 +2,7 @@
# Run the task with profile, e.g.
# cargo make --profile development-mac flowy-sdk-dev
-# cargo make --profile production-desktop-windows-x86 flowy-sdk-dev
+# cargo make --profile production-windows-x86 flowy-sdk-dev
[tasks.env_check]
dependencies = ["echo_env"]
diff --git a/frontend/scripts/makefile/env.toml b/frontend/scripts/makefile/env.toml
index c3ef9be841..981a41909a 100644
--- a/frontend/scripts/makefile/env.toml
+++ b/frontend/scripts/makefile/env.toml
@@ -66,6 +66,8 @@ dependencies = ["check_vcpkg"]
[tasks.install_targets]
script = """
+# TODO: download the targets with corresponding platform. For example:
+# It's not necessary to download aarch64-apple-ios when compiling the Flowy-SDK on windows.
rustup target add x86_64-apple-ios
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-ios