[MM-19636] make file names consistent (#1186)

* added jq

* add verbose message

* add another option for getting the path of npm

* use package.json to get desktop version

* add componentdownload property as dinamic

* fix innertext

* add namespace to element

* remove v from version
This commit is contained in:
Guillermo Vayá
2020-02-11 11:06:43 +01:00
committed by GitHub
parent 3c35767df5
commit 217947b906
4 changed files with 41 additions and 27 deletions

View File

@@ -64,6 +64,11 @@ function Check-Deps {
if ($verbose) { Print-Error "signtool dependency missing." }
$missing += "signtool"
}
if ($verbose) { Print-Info "Checking jq dependency..." }
if (!(Check-Command "jq")) {
if ($verbose) { Print-Error "jq dependency missing." }
$missing += "jq"
}
if ($throwable -and $missing.Count -gt 0) {
throw "com.mattermost.makefile.deps.missing"
@@ -128,6 +133,11 @@ function Install-Deps {
choco install nodejs-lts --yes
break;
}
"jq" {
Print-Info "Installing jq"
choco install jq --yes
break;
}
}
Print-Info "Refreshing PATH..."