【问题标题】:Sparkle Framework problem (not displaying right version)Sparkle 框架问题(不显示正确的版本)
【发布时间】:2011-03-16 03:41:58
【问题描述】:

我是第一次使用 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 update 的提示时,它说“应用名称版本 2.0 现在可用 - 你有 1.0....” 应该是1.5... 为什么会这样? 谢谢!

【问题讨论】:

    标签: cocoa macos sparkle


    【解决方案1】:

    “应该说 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 的猜测。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-16
      相关资源
      最近更新 更多