mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
opt: build the rust sdk while running the flutter program
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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"] }
|
||||
|
Reference in New Issue
Block a user