Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Automatically generate guid in appcast.

  • Loading branch information...
commit 8e1dad38e8bcae7189e0aad0b7d276d32aced1b0 1 parent 02e8d5e
Nicholas Riley authored
Showing with 1 addition and 0 deletions.
  1. +1 −0 
1 
@@ -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,}
Please sign in to comment.
Something went wrong with that request. Please try again.