Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: command fail on linux system (#1731)

Nathan.fooo128bf02ffbaf
diff --git a/frontend/scripts/makefile/protobuf.toml b/frontend/scripts/makefile/protobuf.toml
index 1586e77f4f..6791df5d34 100644
--- a/frontend/scripts/makefile/protobuf.toml
+++ b/frontend/scripts/makefile/protobuf.toml
@@ -1,10 +1,22 @@
-[tasks.install_tauri_protobuf]
+[tasks.install_tauri_protobuf.windows]
script = """
npm install -g protoc-gen-ts
"""
script_runner = "@duckscript"
+[tasks.install_tauri_protobuf.mac]
+script = """
+npm install -g protoc-gen-ts
+"""
+script_runner = "@shell"
+
+[tasks.install_tauri_protobuf.linux]
+script = """
+npm install -g protoc-gen-ts
+"""
+script_runner = "@shell"
+
[tasks.install_flutter_protobuf]
mac_alias = "install-protobuf"
windows_alias = "install-protobuf-windows"