summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-03-20 17:55:16 +0100
committerJakob Borg <jakob@nym.se>2014-03-20 17:55:16 +0100
commit16e1a4397a54f4fc0ff315b403478faeac7faf20 (patch)
treeb97e6d7f08162c966d5b899ffacd69529439aa11
parent8db1bf9732a1853ab3c8415417bfe96ee8eb6a4f (diff)
Sign builds, upload signatures with release artefacts (fixes #97)
-rw-r--r--.gitignore1
-rwxr-xr-xbuild.sh4
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index b1134c6b4a..64cac32906 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ syncthing
syncthing.exe
*.tar.gz
*.zip
+*.asc
diff --git a/build.sh b/build.sh
index e4fb9cf6ca..1fcb9dd353 100755
--- a/build.sh
+++ b/build.sh
@@ -24,6 +24,7 @@ tarDist() {
cp syncthing "${distFiles[@]}" "$name"
tar zcvf "$name.tar.gz" "$name"
rm -rf "$name"
+ gpg -ab "$name.tar.gz"
}
zipDist() {
@@ -32,6 +33,7 @@ zipDist() {
cp syncthing.exe "${distFiles[@]}" "$name"
zip -r "$name.zip" "$name"
rm -rf "$name"
+ gpg -ab "$name.zip"
}
case "$1" in
@@ -80,7 +82,7 @@ case "$1" in
upload)
tag=$(git describe)
shopt -s nullglob
- for f in *gz *zip ; do
+ for f in *.tar.gz *.zip *.asc ; do
relup calmh/syncthing "$tag" "$f"
done
;;