From 128bf02ffbafd798fec42bdcc8a002cd2af9e33e Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Fri, 20 Jan 2023 14:02:12 +0800 Subject: [PATCH] fix: command fail on linux system (#1731) --- frontend/scripts/makefile/protobuf.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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"