opt: build the rust sdk while running the flutter program

This commit is contained in:
appflowy
2021-07-25 11:08:59 +08:00
parent c5881daddd
commit d30ee5db89
7 changed files with 19 additions and 6 deletions

View File

@ -3,4 +3,14 @@
echo 'Start building rust sdk'
rustup show
cargo make desktop
#Env check
#1. rustc --version will be the same as cargo --version
#2. override the toolchain if the current toolchain not equal to the rust-toolchain file specified.
# rustup override set nightly-2021-04-24
#3. Check your cargo env using the same source by: which cargo
# 1. ~/.bash_profile,
# 2. ~/.bashrc
# 3. ~/.profile
# 4. ~/.zshrc
cargo make desktop

View File

@ -16,6 +16,7 @@ condition = { env_true = ["RELEASE"] }
env = { DESKTOP_TARGET = "x86_64-apple-darwin" }
private = true
run_task = "desktop-build"
[tasks.desktop-build]
category = "Build"
condition = { platforms = ["mac"], env_true = ["DEV"] }