Sign builds, upload signatures with release artefacts (fixes #97)
This commit is contained in:
parent
8db1bf9732
commit
16e1a4397a
|
@ -2,3 +2,4 @@ syncthing
|
||||||
syncthing.exe
|
syncthing.exe
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.zip
|
*.zip
|
||||||
|
*.asc
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -24,6 +24,7 @@ tarDist() {
|
||||||
cp syncthing "${distFiles[@]}" "$name"
|
cp syncthing "${distFiles[@]}" "$name"
|
||||||
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() {
|
||||||
|
@ -32,6 +33,7 @@ zipDist() {
|
||||||
cp syncthing.exe "${distFiles[@]}" "$name"
|
cp syncthing.exe "${distFiles[@]}" "$name"
|
||||||
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
|
||||||
|
@ -80,7 +82,7 @@ case "$1" in
|
||||||
upload)
|
upload)
|
||||||
tag=$(git describe)
|
tag=$(git describe)
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for f in *gz *zip ; do
|
for f in *.tar.gz *.zip *.asc ; do
|
||||||
relup calmh/syncthing "$tag" "$f"
|
relup calmh/syncthing "$tag" "$f"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue