Include signature in release bundle (ref #97)

This commit is contained in:
Jakob Borg 2014-03-21 07:40:48 +01:00
parent a84ea70387
commit a4e56caf78
2 changed files with 16 additions and 7 deletions

View File

@ -25,6 +25,13 @@ making sure large swarms of selfish agents behave and somehow work
towards a common goal. Here we have a much smaller swarm of cooperative towards a common goal. Here we have a much smaller swarm of cooperative
agents and a simpler approach will suffice. agents and a simpler approach will suffice.
Signed Releases
---------------
As of v0.7.0 and onwards, git tags and release binaries are GPG signed with
the key BCE524C7 (http://nym.se/gpg.txt). The signature is included in the
normal release bundle as `syncthing.asc` or `syncthing.exe.asc`.
Documentation Documentation
============= =============

View File

@ -20,20 +20,22 @@ test() {
tarDist() { tarDist() {
name="$1" name="$1"
rm -rf "$name"
mkdir -p "$name" mkdir -p "$name"
cp syncthing "${distFiles[@]}" "$name" cp syncthing "${distFiles[@]}" "$name"
gpg -ab "$name/syncthing"
tar zcvf "$name.tar.gz" "$name" tar zcvf "$name.tar.gz" "$name"
rm -rf "$name" rm -rf "$name"
gpg -ab "$name.tar.gz"
} }
zipDist() { zipDist() {
name="$1" name="$1"
rm -rf "$name"
mkdir -p "$name" mkdir -p "$name"
cp syncthing.exe "${distFiles[@]}" "$name" cp syncthing.exe "${distFiles[@]}" "$name"
gpg -ab "$name/syncthing.exe"
zip -r "$name.zip" "$name" zip -r "$name.zip" "$name"
rm -rf "$name" rm -rf "$name"
gpg -ab "$name.zip"
} }
case "$1" in case "$1" in
@ -42,7 +44,7 @@ case "$1" in
;; ;;
tar) tar)
rm -f *.tar.gz *.zip *.asc rm -f *.tar.gz *.zip
prepare prepare
test || exit 1 test || exit 1
build build
@ -54,7 +56,7 @@ case "$1" in
;; ;;
all) all)
rm -f *.tar.gz *.zip *.asc rm -f *.tar.gz *.zip
prepare prepare
test || exit 1 test || exit 1