From e308741fd9ea2cc6f7ea65e66967909974765b78 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 5 Jul 2018 07:19:12 +0200 Subject: Update translations --- tools/deploy/get-latest-builds.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tools/deploy/get-latest-builds.sh (limited to 'tools') diff --git a/tools/deploy/get-latest-builds.sh b/tools/deploy/get-latest-builds.sh new file mode 100755 index 0000000..fc3046d --- /dev/null +++ b/tools/deploy/get-latest-builds.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +echo Get build information +curl -o project-meta.json -H "Content-Type: application/json" https://ci.appveyor.com/api/projects/XianNox/smolbote-hg + +commit=$(jq -r .build.commitId project-meta.json) +echo Build commit: $commit + +for (( i=0; i<$(jq -r '.build.jobs | length' project-meta.json); i++ )) +do + jobId=$(jq -r .build.jobs[$i].jobId project-meta.json) + osType=$(jq -r .build.jobs[$i].osType project-meta.json) + + echo Downloading $jobId-$osType + curl -o smolbote-nightly-$commit-$osType.7z -L https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/smolbote.7z + + echo Extracting package + 7za x smolbote-nightly-$commit-$osType.7z smolbote-install/bin + mv smolbote-nightly-$commit-$osType.7z serve/ + mv smolbote-install/bin serve/smolbote-$commit-$osType + rm -r smolbote-install +done + -- cgit v1.2.1