Release/Makefile
branchadium-1.6
changeset 4968 7f98f2c6290d
parent 4930 602d38d8ca54
parent 4940 09a2e943cd4e
child 4972 6c064c1c2d07
child 4996 b423dc1963a4
--- a/Release/Makefile	Sun Aug 05 22:46:04 2012 +0200
+++ b/Release/Makefile	Wed Aug 08 16:16:15 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,35 @@
 	./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`
+	$(eval DSA := $(shell 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`
+	$(eval MDFIVEHASH := $(shell md5 -q $(BUILD_DIR)/$(RELEASE_NAME_ESCAPED).dmg))
+	@echo Build finished. $(MDFIVEHASH)
+
+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\" => \"$(MDFIVEHASH)\","
+	@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>"
+endif
+endif
 
 #This is what nightly builds use. Does not update because buildbot does.
 nightly: version clean compile createfolder prepare-release-bundle diskimage