Skip to content

Commit b2f6bca

Browse files
author
Predix Robot
committed
Release 1.0.16
1 parent 7c55a2b commit b2f6bca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup-windows.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "local setup",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"private": true,
55
"dependencies": {},
66
"author": "rishabhtulsian"

0 commit comments

Comments
 (0)