@@ -94,6 +94,7 @@ IF NOT !errorlevel! EQU 0 (
94
94
CALL :CHOCO_INSTALL 7zip.commandline 7z
95
95
REM get the url of the release file
96
96
(curl -s -L https://api.github.com/repos/PredixDev/predix-cli/releases > output.tmp )
97
+ < output.tmp ( jq -r " .[0].assets[0].browser_download_url" > output2.tmp )
97
98
SET /p cli_url = < output2.tmp
98
99
@ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','predix-cli.tar.gz')"
99
100
7z x " predix-cli.tar.gz" -so | 7z x -aoa -si -ttar -o" predix-cli"
@@ -131,6 +132,7 @@ GOTO :eof
131
132
CALL :CHOCO_INSTALL 7zip.commandline 7z
132
133
REM get the url of the release file
133
134
(curl -s -L https://api.github.com/repos/PredixDev/predix-cli/releases > output.tmp )
135
+ < output.tmp ( jq -r " .[0].assets[0].browser_download_url" > output2.tmp )
134
136
SET /p cli_url = < output2.tmp
135
137
@ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','predix-cli.tar.gz')"
136
138
7z x " predix-cli.tar.gz" -so | 7z x -aoa -si -ttar -o" predix-cli"
@@ -152,6 +154,7 @@ IF NOT !errorlevel! EQU 0 (
152
154
REM get the url of the release file
153
155
(curl -s -L https://api.github.com/repos/PredixDev/predix-mobile-cli/releases > output.tmp )
154
156
< output.tmp ( jq -r " [ .[] | select(.prerelease==false) ] | .[0].assets[] | select(.name | contains(\" win\" )) | .browser_download_url" > output2.tmp )
157
+ < output.tmp ( jq -r " .[0].assets[0].browser_download_url" > output2.tmp )
155
158
< output2.tmp (SET /p cli_url=)
156
159
@ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','pm.zip')"
157
160
7z x " pm.zip" -o" mobile-cli"
0 commit comments