summaryrefslogtreecommitdiff
path: root/scripts/publish-macosx.sh
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-02-12 02:44:48 (GMT)
committerMarius Kintel <marius@kintel.net>2013-02-12 02:44:48 (GMT)
commitf3731d8ce177ef2791ffb3ad41891fac2fcad52e (patch)
treef4b6c05d4505ccee58b8b51d46066d803fa8ef52 /scripts/publish-macosx.sh
parent3a517e4a3f60f98ec423ef49a8d856f69731ebba (diff)
Added support for signing binaries
Diffstat (limited to 'scripts/publish-macosx.sh')
-rwxr-xr-xscripts/publish-macosx.sh4
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
contact: Jan Huwald // Impressum