Skip to content

Commit

Permalink
Add update-yggdrasil.sh
Browse files Browse the repository at this point in the history
Add also jq dependency into 00-prepare.sh
  • Loading branch information
carnhofdaki committed Nov 27, 2019
1 parent 286690c commit e795141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 00-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# dependencies:

for dep in wget 7z md5sum stat bc upx
for dep in wget 7z md5sum stat bc upx jq
do type $dep; done

test -r .prepared || {
Expand Down
8 changes: 8 additions & 0 deletions update-yggdrasil.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

URL="https://circleci.com/api/v1.1/project/github/yggdrasil-network/yggdrasil-go/latest/artifacts?branch=master&filter=successful"

NEW=$(wget -q -O - $URL | jq -r .[].url \
| grep -om1 '^https://.*windows-i386.exe$')

sed -i "s|^https://.*-windows-i386.exe$|$NEW|" deps-list.sh

0 comments on commit e795141

Please sign in to comment.