mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: install protoc-gen-dart if not installed
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
# cargo make --profile production-windows-x86 flowy-sdk-dev
|
||||
|
||||
[tasks.env_check]
|
||||
dependencies = ["echo_env"]
|
||||
dependencies = ["echo_env", "install-pb-tool-if-need"]
|
||||
condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["stable"] }
|
||||
|
||||
[tasks.flowy-sdk-dev]
|
||||
@ -142,3 +142,16 @@ script = [
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
||||
[tasks.check_protoc_cmd]
|
||||
script = [
|
||||
"""
|
||||
ret = which protoc
|
||||
if is_empty ${ret}
|
||||
echo Please make sure <protoc_installation_folder>/bin/ is in PATH env var
|
||||
echo See BUILD_ON_{LINUX|WINDOWS}.md for how to get protoc
|
||||
exit -1
|
||||
end
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
Reference in New Issue
Block a user