我是第一次使用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>请注意,在title标记中,版本的名称是1.5,但是当我收到闪动更新的提示时,它会显示"App Name version 2.0 is now available - you have 1.0...“。它应该是1.5...为什么会发生这种情况?谢谢!
发布于 2011-03-16 11:52:39
“应该是1.5”,比如"App Name version 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这只是基于对的观察而猜测的。
https://stackoverflow.com/questions/5320809
复制相似问题