@@ -94,6 +94,7 @@ IF NOT !errorlevel! EQU 0 (
9494 CALL :CHOCO_INSTALL 7zip.commandline 7z
9595 REM get the url of the release file
9696 (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 )
9798 SET /p cli_url = < output2.tmp
9899 @ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','predix-cli.tar.gz')"
99100 7z x " predix-cli.tar.gz" -so | 7z x -aoa -si -ttar -o" predix-cli"
@@ -131,6 +132,7 @@ GOTO :eof
131132 CALL :CHOCO_INSTALL 7zip.commandline 7z
132133 REM get the url of the release file
133134 (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 )
134136 SET /p cli_url = < output2.tmp
135137 @ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','predix-cli.tar.gz')"
136138 7z x " predix-cli.tar.gz" -so | 7z x -aoa -si -ttar -o" predix-cli"
@@ -152,6 +154,7 @@ IF NOT !errorlevel! EQU 0 (
152154 REM get the url of the release file
153155 (curl -s -L https://api.github.com/repos/PredixDev/predix-mobile-cli/releases > output.tmp )
154156 < 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 )
155158 < output2.tmp (SET /p cli_url=)
156159 @ powershell -Command " (new-object net.webclient).DownloadFile('!cli_url! ','pm.zip')"
157160 7z x " pm.zip" -o" mobile-cli"
0 commit comments