Using one appcast.xml in both Windows and OS X

331 views
Skip to first unread message

Alex Novichkov

unread,
Jan 23, 2014, 4:12:16 AM1/23/14
to winsp...@googlegroups.com
Hi! I've been using Sparkle framework on Mac OS X and WinSparkle on Windows.
I've created one appcast.xml for both versions (with two <item> sections), tagging the Windows <item> with sparkle:os="windows" property.
In order to Sparkle update properly I've placed the item for OS X first. But now when I'm trying to update my app on Windows an Os X version is downloaded.
It seems that both Sparkle and WinSparkle just ignore sparkle:os tag. Is it possible though to use one appcast.xml with more than one <item>?

Here is my appcast.xml:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"  xmlns:dc="http://purl.org/dc/elements/1.1/">
   <channel>
      <title>Qoobar - The Tag Editor for Classical Music</title>
      <link>http://qoobar.sourceforge.net/appcast.xml</link>
      <description>Most recent changes with links to updates.</description>
      <language>en</language>
         <item>
            <title>Version 1.6.4 for OS X</title>
            <description>This version fixes two serious bugs: corrupting of m4a files and closing an empty tab. It also introduces simple music search.</description>
            <pubDate>Thu, 23 Jan 2014 10:13:42 +0400</pubDate>
            <sparkle:releaseNotesLink>http://qoobar.sourceforge.net/en/changelog_latest.htm</sparkle:releaseNotesLink>
            <enclosure
              sparkle:version="1.6.4"
              sparkle:os=""
              sparkle:dsaSignature="MC4CFQCN6UNQ1IXwriL/6jfRSXRhVt2FQQIVAIQXN42yPYt7ggcDAlJqPjKByuig"
              url="http://sourceforge.net/projects/qoobar/files/qoobar-1.6.4/Mac_OS_X/qoobar-1.6.4.dmg/download"
              length="11788099"
              type="application/octet-stream"/>
         </item>
         <item>
            <title>Version 1.6.4 for Windows</title>
            <description>This version fixes two serious bugs: corrupting of m4a files and closing an empty tab. It also introduces simple music search.</description>
            <pubDate>Thu, 23 Jan 2014 10:13:42 +0400</pubDate>
            <sparkle:releaseNotesLink>http://qoobar.sourceforge.net/en/changelog_latest.htm</sparkle:releaseNotesLink>
            <enclosure
              sparkle:version="1.6.4"
              sparkle:os="windows"
              url="http://sourceforge.net/projects/qoobar/files/qoobar-1.6.4/Windows/qoobar-1.6.4.exe/download"
              length="16048528"
              type="application/octet-stream"/>
         </item>
   </channel>
</rss>

Best regards,
Alex Novichkov.

Václav Slavík

unread,
Jan 23, 2014, 4:26:02 AM1/23/14
to winsp...@googlegroups.com

On 23 Jan 2014, at 10:12, Alex Novichkov <novichko...@gmail.com> wrote:

> Hi! I've been using Sparkle framework on Mac OS X and WinSparkle on Windows.
> I've created one appcast.xml for both versions (with two <item> sections), tagging the Windows <item> with sparkle:os="windows" property.
> In order to Sparkle update properly I've placed the item for OS X first. But now when I'm trying to update my app on Windows an Os X version is downloaded.
> It seems that both Sparkle and WinSparkle just ignore sparkle:os tag.

Yes. I assume you are referring to this?
https://github.com/andymatuschak/Sparkle/wiki/publishing-an-update#alternate-download-locations-for-other-operating-systems

That reads as clearly speculative (“it is suggested…”) to me, not as a specification of anything official or implemented anywhere.

A pull request implementing sparkle:os support would be gladly accepted.

> Is it possible though to use one appcast.xml with more than one <item>?

It is, although I’m not sure if WinSparkle’s implementation doesn’t use just the first item at the moment. Again, a pull request improving it would be welcome.

Regards,
Vaclav

novichko...@gmail.com

unread,
Jan 23, 2014, 5:15:42 AM1/23/14
to winsp...@googlegroups.com
Thank you very much. As soon as I find out how to implement such a feature I'll add a pull request.
 
Best regards,
Alex Novichkov.

Václav Slavík

unread,
Jan 23, 2014, 5:22:45 AM1/23/14
to winsp...@googlegroups.com

On 23 Jan 2014, at 11:15, novichko...@gmail.com wrote:
 As soon as I find out how to implement such a feature

There’s really nothing too complicated about it: all the code for parsing the feed is in appcast.cpp and is rather straightforward. Hopefully, so would be skipping over anything that has sparkle:os and the value differs from “windows”…

Regards,
Vaclav
Reply all
Reply to author
Forward
0 new messages