Przeglądaj źródła

rename some tasks' name

appflowy 3 lat temu
rodzic
commit
054fa4c952

+ 1 - 1
.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:

+ 4 - 4
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)

+ 4 - 4
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"

+ 1 - 0
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>,

+ 1 - 1
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
+cargo make --profile development-windows-x86 flowy-sdk-dev

+ 1 - 1
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"]

+ 2 - 0
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