|
@@ -10,6 +10,7 @@ output = exec powershell -Command "Get-CimInstance MSFT_VSInstance | select -Exp
|
|
|
stdout = set ${output.stdout}
|
|
|
pos = last_indexof ${stdout} .
|
|
|
new_str = substring ${stdout} 0 ${pos}
|
|
|
+# TODO: will raise error if there are more than 1 visual studio installation
|
|
|
newer = semver_is_newer ${new_str} 16.11.0
|
|
|
assert ${newer} "Visual studio 2019 is not installed or version is lower than 16.11.0"
|
|
|
"""
|
|
@@ -101,7 +102,7 @@ if is_empty ${ret}
|
|
|
end
|
|
|
ret = which protoc-gen-dart
|
|
|
if is_empty ${ret}
|
|
|
- dart pub global activate protoc_plugin
|
|
|
+ exec cmd.exe /c dart pub global activate protoc_plugin
|
|
|
home_dir = get_home_dir
|
|
|
echo Please add '${home_dir}\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\bin' into PATH env var
|
|
|
exit -1
|