rename some tasks' name

This commit is contained in:
appflowy 2021-11-23 17:45:18 +08:00
parent ce126fe08d
commit 054fa4c952
7 changed files with 14 additions and 11 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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"

View File

@ -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>,

View File

@ -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

View File

@ -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"]

View File

@ -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