diff options
author | Marius Kintel <marius@kintel.net> | 2013-02-12 02:44:48 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-02-12 02:44:48 (GMT) |
commit | f3731d8ce177ef2791ffb3ad41891fac2fcad52e (patch) | |
tree | f4b6c05d4505ccee58b8b51d46066d803fa8ef52 /scripts/publish-macosx.sh | |
parent | 3a517e4a3f60f98ec423ef49a8d856f69731ebba (diff) |
Added support for signing binaries
Diffstat (limited to 'scripts/publish-macosx.sh')
-rwxr-xr-x | scripts/publish-macosx.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/publish-macosx.sh b/scripts/publish-macosx.sh index 2fe85d4..306f1cd 100755 --- a/scripts/publish-macosx.sh +++ b/scripts/publish-macosx.sh @@ -32,13 +32,15 @@ if [[ $? != 0 ]]; then exit 1 fi +SIGNATURE=$(openssl dgst -sha1 -binary < OpenSCAD-$VERSION.dmg | openssl dgst -dss1 -sign dsa_priv.pem | openssl enc -base64) + if [[ $VERSION == $VERSIONDATE ]]; then APPCASTFILE=appcast-snapshots.xml else APPCASTFILE=appcast.xml fi echo "Creating appcast $APPCASTFILE..." -sed -e "s,@VERSION@,$VERSION,g" -e "s,@VERSIONDATE@,$VERSIONDATE,g" -e "s,@FILESIZE@,$(stat -f "%z" OpenSCAD-$VERSION.dmg),g" $APPCASTFILE.in > $APPCASTFILE +sed -e "s,@VERSION@,$VERSION,g" -e "s,@VERSIONDATE@,$VERSIONDATE,g" -e "s,@DSASIGNATURE@,$SIGNATURE,g" -e "s,@FILESIZE@,$(stat -f "%z" OpenSCAD-$VERSION.dmg),g" $APPCASTFILE.in > $APPCASTFILE cp $APPCASTFILE ../openscad.github.com if [[ $VERSION == $VERSIONDATE ]]; then cp $APPCASTFILE ../openscad.github.com/appcast-snapshots.xml |