Cocoa Sparkle框架问题(未显示正确的版本)
我第一次使用sparkle框架。我正在尝试测试它,一切都很好,除了它不能正确显示更新版本。例如,这是我在服务器上的xml文件:Cocoa Sparkle框架问题(未显示正确的版本),cocoa,macos,sparkle,Cocoa,Macos,Sparkle,我第一次使用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/"> <
<?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>
你伟大的应用程序的变更日志
http://localhost/test/SampleAppcast.xml
带有更新链接的最新更改。
EN
版本1.5(修复了2个错误;3个新功能)
http://localhost/test/notes.html
2011年3月15日星期三19:20:11+0000
请注意,在标题标签中,版本名称为1.5,但当我收到sparkle更新提示时,它会显示“应用程序名称版本2.0现在可用-您有1.0…”
应该是1.5。。。
为什么会这样?
谢谢 “应该是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的猜测。它应该说是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的猜测