aboutsummaryrefslogtreecommitdiff
path: root/tools/deploy
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-05 07:19:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-05 07:19:12 +0200
commite308741fd9ea2cc6f7ea65e66967909974765b78 (patch)
tree1ca2c1f35010bc94f82d4a4f468941bf937dc918 /tools/deploy
parentAdd configuration/defaults.h (diff)
downloadsmolbote-e308741fd9ea2cc6f7ea65e66967909974765b78.tar.xz
Update translations
Diffstat (limited to 'tools/deploy')
-rwxr-xr-xtools/deploy/get-latest-builds.sh23
1 files changed, 23 insertions, 0 deletions
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
+