Make the Release/Makefile somewhat easier to use by automatically generating the required updates for Sparkle and beta/index.php adium-1.5.3
authorThijs Alkemade <thijsalkemade@gmail.com>
Wed, 25 Jul 2012 02:23:18 +0200
branchadium-1.5.3
changeset 4911 f5af8aae6bfa
parent 4909 1e2b55610208
child 4912 b7a2621399c5
Make the Release/Makefile somewhat easier to use by automatically generating the required updates for Sparkle and beta/index.php
Release/Makefile
--- a/Release/Makefile	Wed Jul 25 01:32:15 2012 +0200
+++ b/Release/Makefile	Wed Jul 25 02:23:18 2012 +0200
@@ -69,9 +69,9 @@
 endif
 
 ifeq ($(BUILD_IN_DEBUG_MODE),TRUE)
-    BUILDSTYLE=Release-Debug
+	BUILDSTYLE=Release-Debug
 else
-    BUILDSTYLE=Release
+	BUILDSTYLE=Release
 endif
 
 BUILDFLAGS+="BUILDCONFIGURATION=$(BUILDSTYLE)"
@@ -194,10 +194,36 @@
 	./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME).dmg $(ADIUM_DIR) "Adium $(VERSION)" dmg_adium.scpt $(ART_DIR)
 
 ifeq ($(OFFICIAL_BUILD),TRUE)
-	@echo DSA for Sparkle: `ruby sign_update.rb $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg ~/adium-dsa-sign/dsa_priv.pem`
+	DSA=`ruby sign_update.rb $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg ~/adium-dsa-sign/dsa_priv.pem`
+	@echo DSA for Sparkle: $DSA
 endif
 
-	@echo Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg`
+	MD5=`md5 $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg`
+	@echo Build finished. $(MD5)
+
+ifeq ($(OFFICIAL_BUILD),TRUE)
+ifeq ($(BETA),TRUE)
+	@echo Add this to beta/index.php:
+	@echo					array(
+	@echo					"ver" => "$(VERSION)",
+	@echo					"rev" => "`hg parent --template {node\|short}`",
+	@echo					"date" => "`date +"%Y-%m-%d"`",
+	@echo					"md5" => "$(MD5)",
+	@echo					"dsa" => "$(DSA)"
+	@echo					),
+
+	@echo
+	@echo Add this to sparkle/appcast-beta.xml:
+	@echo 	<item>
+	@echo 	    <title>Adium $(VERSION)/title>
+	@echo 	    <pubDate>`date +"%a, %d %b %Y %H:%M:%S %z"`</pubDate>
+	@echo 	    <sparkle:releaseNotesLink>http://beta.adium.im/?notemplate</sparkle:releaseNotesLink>
+	@echo 	    <sparkle:minimumSystemVersion>10.6.8</sparkle:minimumSystemVersion>
+	@echo 	    <enclosure sparkle:dsaSignature="$(DSA)" sparkle:version="$(VERSION)" url="http://download.adium.im/Adium_$(VERSION).dmg" length="`stat -f %z $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg`" type="application/octet-stream"/>
+	@echo 	</item>
+	@echo 	<item>
+endif
+endif
 
 #This is what nightly builds use. Does not update because buildbot does.
 nightly: version clean compile createfolder prepare-release-bundle diskimage