| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | 
[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    then        exit 0    fi    # installed    exit 1    """,]run_task = { name = ["install_protobuf_compiler"] }[tasks.install-protobuf-windows]script = """ret = which dartif is_empty ${ret}    echo Please make sure flutter/dart is properly installed and in PATH env var    exit -1endret = which protoc-gen-dartif is_empty ${ret}    exec cmd.exe /c dart pub global activate protoc_pluginendret = which protoc-gen-dartif is_empty ${ret}    home_dir = get_home_dir    echo Please add '${home_dir}\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\bin' into PATH env var    exit -1end"""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"
 |