feat: install protoc-gen-dart if not installed

This commit is contained in:
appflowy
2022-02-08 22:42:00 +08:00
parent dd3f1d0b24
commit f55de1fd17
3 changed files with 58 additions and 26 deletions

View File

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