0

我是第一次使用 sparkle 框架。我正在尝试对其进行测试,一切正常,除了它没有正确显示更新版本。例如,这是我在服务器上的 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>Your Great App's Changelog</title>
      <link>http://localhost/test/SampleAppcast.xml</link>
      <description>Most recent changes with links to updates.</description>
      <language>en</language>


         <item>
            <title>Version 1.5 (2 bugs fixed; 3 new features)</title>
                        <sparkle:releaseNotesLink>
                            http://localhost/test/notes.html
                        </sparkle:releaseNotesLink>
            <pubDate>Wed, 15 Mar 2011 19:20:11 +0000</pubDate>
            <enclosure url="http://localhost/test/seglab.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="MCwCFD8H0l7NOhl7OXeqVM1+CeonHuKtAhRQXdB4alDeMPgSUaHhuX1Zx5GwTg==" />
         </item>

   </channel> </rss>

注意在标题标签中,版本的名称是 1.5,但是当我收到 sparkle 更新的提示时,它说“应用名称版本 2.0 现在可用 - 你有 1.0...。”它应该说 1.5...为什么会这样?谢谢!

4

1 回答 1

3

“它应该说 1.5”,如“应用程序名称1.5版现在可用 - 你有 1.0....”?

那么您可能需要更改此标签:

<enclosure
    url="http://localhost/test/seglab.zip"
    sparkle:version="2.0"
    length="1623481"
    ... />

对此:

<enclosure
    url="http://localhost/test/seglab.zip"
    sparkle:version="1.5"
    length="1623481"
    ... />

完全披露:我以前从未使用过 Sparkle。这只是基于观察 XML 的猜测。

于 2011-03-16T03:52:38.753 回答