mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
This provides enhanced opt-in security preventing informational attacks that for example suggest the user the auto-updater is broken and an update needs to be installed from a compromised website (assuming the developer's website is hijacked). To opt in, developers need to add SURequireSignedFeed Info.plist key to their bundle. generate_appcast and sign_update have been updated to support signing appcast feeds and release note files (both need to be signed). By default, they embed a HTML comment warning in the files that further modifications will invalidate previously signed signatures. Signed appcasts include a signing block comment at the end of the XML file describing the signature of the content preceding it. Signed release notes will have their signatures annotated in the <sparkle:releaseNotesLink> element with a sparkle:edSignature attribute (and optionally a sparkle:length attribute for diagnostic purposes). A signingValidationStatus property is also now added to SUAppcast and SUAppcastItem indicating the signing status (skipped, succeeded, failed). The standard user driver's release notes HTML web view rejects external file references when appcasts are signed. A bug has also been fixed where the update alert would not provide errors when loading external release note files fails. These changes also introduce a showing new error / localizable strings when the release notes is not signed correctly or fails to load. As a hardening policy, we also enforce SUVerifyUpdateBeforeExtraction when opting into signed feeds, so key rotation is only possible with Developer ID code signed dmg archives. A fallback feed signing failure expiration policy has also been added. When a signed feed has failed validation for more than a configurable period of time (by default SUSignedFeedFailureExpirationInterval is set to 20 days), Sparkle will allow appcast items to be shown to the user. However, these items operate in a safe mode that strip abusable information like release notes / descriptions / links, sanitize the version strings, and they cannot be marked critical or informational, nor be installed automatically. After this policy expires, this allows users installing updates as long as the updates are signed correctly, or be aware that the updater has not been functioning correctly. Fixes #971.
154 lines
8.0 KiB
XML
154 lines
8.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- sparkle-sign-warning:
|
|
IMPORTANT: This file must be re-signed if modifications are made to this file! The updated signature will be at the end of the file.
|
|
-->
|
|
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
<channel>
|
|
<title>Sparkle Test App Changelog</title>
|
|
<description>Most recent changes with links to updates.</description>
|
|
<language>en</language>
|
|
<item>
|
|
<title>Version 2.2</title>
|
|
<sparkle:version>2.2</sparkle:version>
|
|
<link>https://sparkle-project.org</link>
|
|
<sparkle:channel>automatic</sparkle:channel>
|
|
<sparkle:fullReleaseNotesLink>releasenotes.html</sparkle:fullReleaseNotesLink>
|
|
<description>
|
|
<![CDATA[
|
|
<ul>
|
|
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
</ul>
|
|
]]>
|
|
</description>
|
|
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
|
|
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="$INSERT_ARCHIVE_LENGTH" type="application/octet-stream" sparkle:edSignature="$INSERT_EDDSA_SIGNATURE" />
|
|
</item>
|
|
|
|
<item>
|
|
<title>Version 2.1</title>
|
|
<sparkle:version>2.1</sparkle:version>
|
|
<link>https://sparkle-project.org</link>
|
|
<sparkle:channel>delta</sparkle:channel>
|
|
<sparkle:fullReleaseNotesLink>releasenotes.html</sparkle:fullReleaseNotesLink>
|
|
<description>
|
|
<![CDATA[
|
|
<ul>
|
|
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
<li>Suspendisse sed felis ac ante ultrices rhoncus. Etiam quis elit vel nibh placerat facilisis in id leo.</li>
|
|
</ul>
|
|
]]>
|
|
</description>
|
|
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
|
|
<!-- Note: this file won't actually exist to ensure delta update works -->
|
|
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="100000" type="application/octet-stream" sparkle:edSignature="ootgYIwmnS1wa7Q/5SXDXnOVdKnjkjrFhm/D7ukW77k=" />
|
|
|
|
<sparkle:deltas>
|
|
<enclosure url="http://localhost:1337/patch.delta"
|
|
sparkle:deltaFrom="$INSERT_DELTA_FROM_VERSION"
|
|
length="$INSERT_DELTA_ARCHIVE_LENGTH"
|
|
type="application/octet-stream"
|
|
sparkle:edSignature="$INSERT_DELTA_EDDSA_SIGNATURE" />
|
|
</sparkle:deltas>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Version 2.0.1</title>
|
|
<sparkle:version>2.0.1</sparkle:version>
|
|
<link>https://sparkle-project.org</link>
|
|
<sparkle:fullReleaseNotesLink>releasenotes.html</sparkle:fullReleaseNotesLink>
|
|
<sparkle:channel>markdown</sparkle:channel>
|
|
<description sparkle:format="markdown">
|
|
< because it allows them to blog or write text without having to write all the opening/closing HTML tags. This makes blogging or writing software release notes with markdown a pleasant experience.
|
|
|
|
From a good friend:
|
|
|
|
> Markdown is also useful for applications that cannot embed WKWebView directly, such as apps without a download client entitlement, or Catalyst applications.
|
|
>
|
|
>> In quotes you can also have nested quotes, and the lines in nested quotes can be long enough to span over the next few lines, assuming that the lines are long enough.
|
|
>>
|
|
>> And that is how nested quotes can work. A known limitation is properly styling lists in blockquotes so I'd suggest to avoid that.
|
|
>
|
|
|
|
After this paragraph, you should see extra spacing from using a line break.
|
|
|
|
---
|
|
|
|
Code blocks from markdown are also supported using a monospace font:
|
|
|
|
```sh
|
|
me@Compy ~/D/P/Sparkle> ls
|
|
Autoupdate/ Carthage-dev.json Configurations/ generate_appcast/ InstallerLauncher/ Package.swift Sparkle/ TestAppHelper/ Vendor/
|
|
bin/ CHANGELOG DerivedData/ generate_keys/ InstallerStatus/ README.markdown sparkle-cli/ TestApplication/
|
|
BinaryDelta/ CODE_OF_CONDUCT.md Documentation/ INSTALL LICENSE Resources/ Sparkle.podspec Tests/
|
|
build/ common_cli/ Downloader/ InstallerConnection/ Makefile sign_update/ Sparkle.xcodeproj/ UITests/
|
|
```
|
|
|
|
Note though, Sparkle's markdown support does not support tables or images. It needs to work without loading additional resources and without switching to TextKit 1.
|
|
|
|
## Version 2.0
|
|
|
|
* **Redesigned Interface**: Enjoy a refreshed, modern UI that improves navigation and streamlines workflows across the app.
|
|
* **Cloud Sync Support**: Projects and settings can now be synced securely across multiple devices using your account.
|
|
* **Customizable Shortcuts**: Create and manage keyboard shortcuts for almost any action.
|
|
* Improved launch performance and reduced memory usage during startup.
|
|
* Fixed an issue where notifications could appear twice in some cases.
|
|
* Addressed several minor visual glitches in dark mode.]]>
|
|
</description>
|
|
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
|
|
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="$INSERT_ARCHIVE_LENGTH" type="application/octet-stream" sparkle:edSignature="$INSERT_EDDSA_SIGNATURE" />
|
|
</item>
|
|
|
|
<item>
|
|
<title>Version 2.0</title>
|
|
<sparkle:version>2.0</sparkle:version>
|
|
<link>https://sparkle-project.org</link>
|
|
<sparkle:fullReleaseNotesLink>releasenotes.html</sparkle:fullReleaseNotesLink>
|
|
<description>
|
|
<![CDATA[
|
|
<style>
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
ul li {
|
|
margin-bottom: 0.2em;
|
|
}
|
|
</style>
|
|
<h3>Version 2.0</h3>
|
|
<ul>
|
|
<li><strong>Redesigned Interface</strong>: Enjoy a refreshed, modern UI that improves navigation and streamlines workflows across the app.</li>
|
|
<li><strong>Cloud Sync Support</strong>: Projects and settings can now be synced securely across multiple devices using your account.</li>
|
|
<li><strong>Customizable Shortcuts</strong>: Create and manage keyboard shortcuts for almost any action.</li>
|
|
<li>Improved launch performance and reduced memory usage during startup.</li>
|
|
<li>Fixed an issue where notifications could appear twice in some cases.</li>
|
|
<li>Addressed several minor visual glitches in dark mode.</li>
|
|
</ul>
|
|
]]>
|
|
</description>
|
|
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
|
|
<enclosure url="http://localhost:1337/Sparkle_Test_App.zip" length="$INSERT_ARCHIVE_LENGTH" type="application/octet-stream" sparkle:edSignature="$INSERT_EDDSA_SIGNATURE" />
|
|
</item>
|
|
</channel>
|
|
</rss>
|
|
<!-- sparkle-signatures:
|
|
edSignature: $INSERT_EDDSA_FEED_SIGNATURE
|
|
length: $INSERT_FEED_LENGTH
|
|
-->
|