mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: fix windows build erros
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
|
||||
[tasks.install_protobuf]
|
||||
mac_alias = "install-protobuf"
|
||||
windows_alias = "install-protobuf-windows"
|
||||
linux_alias = "install-protobuf"
|
||||
|
||||
[tasks.install-protobuf]
|
||||
condition_script = [
|
||||
"""
|
||||
if ! command -v protoc-gen-dart
|
||||
@ -13,21 +18,8 @@ condition_script = [
|
||||
]
|
||||
run_task = { name = ["install_protobuf_compiler"] }
|
||||
|
||||
[tasks.install_protobuf_compiler]
|
||||
script = """
|
||||
echo "Install protoc_plugin (Dart)"
|
||||
dart pub global activate protoc_plugin
|
||||
"""
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.install_protobuf_compiler.linux]
|
||||
script = """
|
||||
echo "Install protoc_plugin (Dart)"
|
||||
dart pub global activate protoc_plugin
|
||||
"""
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.install_protobuf_compiler.windows]
|
||||
[tasks.install-protobuf-windows]
|
||||
script = """
|
||||
ret = which dart
|
||||
if is_empty ${ret}
|
||||
@ -44,6 +36,22 @@ end
|
||||
"""
|
||||
script_runner = "@duckscript"
|
||||
|
||||
|
||||
[tasks.install_protobuf_compiler]
|
||||
script = """
|
||||
echo "Install protoc_plugin (Dart)"
|
||||
dart pub global activate protoc_plugin
|
||||
"""
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.install_protobuf_compiler.linux]
|
||||
script = """
|
||||
echo "Install protoc_plugin (Dart)"
|
||||
dart pub global activate protoc_plugin
|
||||
"""
|
||||
script_runner = "@shell"
|
||||
|
||||
|
||||
[tasks.check_protoc_cmd]
|
||||
script = [
|
||||
"""
|
||||
|
Reference in New Issue
Block a user