Permalink
Browse files

Generate appcast.xml.

Uses version number from top-level CMakeLists.txt to avoid having the
version stored in multiple places.
  • Loading branch information...
1 parent ab4213a commit 0f00665200c2c5a17d6384ff492e8b4bdf51a1c8 @alamaison committed May 13, 2015
Showing with 20 additions and 10 deletions.
  1. +11 −2 CMakeLists.txt
  2. +8 −6 appcast.xml → appcast.xml.in
  3. +1 −2 build/making_a_release.txt
View
@@ -29,7 +29,7 @@ HunterGate(
################################################################################
-project(swish)
+project(swish VERSION 0.8.2)
#include(max_warnings)
@@ -63,4 +63,13 @@ option(BUILD_TESTING "Build test suite" ON)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(test)
-endif()
+endif()
+
+set(INSTALLER_URL
+ "https://sourceforge.net/projects/swish/files/swish/swish-${swish_VERSION}/swish-${swish_VERSION}.exe")
+string(TIMESTAMP PUBLICATION_DATE UTC)
+
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/appcast.xml.in
+ ${CMAKE_CURRENT_BINARY_DIR}/appcast.xml
+ @ONLY)
@@ -1,16 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
-<channel>
+ <channel>
<title>Swish updates</title>
<link>http://www.swish-sftp.org/autoupdate/appcast.xml</link>
<description>Appcast for Swish updates.</description>
<language>en</language>
<item>
- <title>Version 0.8.2</title>
- <sparkle:releaseNotesLink>http://www.swish-sftp.org/autoupdate/NEWS-0.8.2.html</sparkle:releaseNotesLink>
- <pubDate>07 March 2014</pubDate>
- <enclosure url="http://sourceforge.net/projects/swish/files/swish/swish-0.8.2/swish-0.8.2.exe"
- sparkle:version="0.8.2"
+ <title>Version @swish_VERSION@</title>
+ <sparkle:releaseNotesLink>
+ http://www.swish-sftp.org/autoupdate/NEWS-@swish_VERSION@.html
+ </sparkle:releaseNotesLink>
+ <pubDate>@PUBLICATION_DATE@</pubDate>
+ <enclosure url="@INSTALLER_URL@"
+ sparkle:version="@swish_VERSION@"
type="application/octet-stream"/>
</item>
</channel>
@@ -1,6 +1,5 @@
Update version number in:
- top-level CMakeLists.txt
-- appcast.xml (x5 and date)
- setup_conf.xml (x4)
- wix/swish.wxs
- wix/wix.wixproj
@@ -13,4 +12,4 @@ Make sure .po files are compiled to .mo files (po/compile_mo.sh).
To build the final multi-architecture EXE, run this command in the top level:
"C:\Program Files (x86)\dotNetInstaller\bin\InstallerLinker.exe" /Output:swish.exe /Template:"C:\Program Files (x86)\dotNetInstaller\bin\dotNetInstaller.exe" /Configuration:setup_conf.xml
-Add version to Trac.
+Add version to Trac.

0 comments on commit 0f00665

Please sign in to comment.