Browse files

Automatically generate guid in appcast.

  • Loading branch information...
1 parent 02e8d5e commit 8e1dad38e8bcae7189e0aad0b7d276d32aced1b0 @nriley committed Sep 14, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0
@@ -47,6 +47,7 @@ DIGEST=`openssl dgst -sha1 -binary < $DMG | openssl dgst -dss1 -sign ~/Documents
NOW=`perl -e 'use POSIX qw(strftime); print strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time())) . $tz'`
perl -pi -e 's|(<enclosure url=".+'$DMG'").+/>|\1 length="'$SIZE'" type="application/x-apple-diskimage" sparkle:version="'$BUILD'" sparkle:shortVersionString="'$VERSION'" sparkle:dsaSignature="'$DIGEST'"/>|' Updates/updates.xml
perl -pi -e 's#<(pubDate|lastBuildDate)>[^<]*#<$1>'$NOW'# && $done++ if $done < 3' Updates/updates.xml
+perl -pi -e 's|(<guid isPermaLink="false">)[^<]*|$1'${PRODUCT:l}-${VERSION:s/.//}'| && $done++ if $done < 1' Updates/updates.xml
scp $DMG ainaz:web/nriley/software/$
ssh ainaz chmod go+r web/nriley/software/$
ssh ainaz mv web/nriley/software/$DMG{.new,}

0 comments on commit 8e1dad3

Please sign in to comment.