Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Automatically generate guid in appcast.

  • Loading branch information...
commit 8e1dad38e8bcae7189e0aad0b7d276d32aced1b0 1 parent 02e8d5e
@nriley authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  package-Pester.sh
View
1  package-Pester.sh
@@ -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/$DMG.new
ssh ainaz chmod go+r web/nriley/software/$DMG.new
ssh ainaz mv web/nriley/software/$DMG{.new,}

0 comments on commit 8e1dad3

Please sign in to comment.
Something went wrong with that request. Please try again.