Files
Sparkle/TestApplication/sparkletestcast.xml
T
Zorg 82d7da9326 Add markdown support for release notes (#2810)
* Supports Markdown ordered/unordered lists, paragraphs, headers, code blocks, inline styling. Block quotes and thematic breaks are handled in simple manner through indentation and extra newline respectively. Tables are not supported. HTML isn't supported.
* Requires macOS 12 or later due to leveraging Foundation / presentation intents for markdown processing. Older OS's and older Sparkle versions >= 2.4.0 will fall back to plain-text interpretation. Additionally, TextKit 2 is now adopted for macOS 12+, and TextKit 1 only code is to be avoided.
* Adds delegate method to allow formatting / modifying the presented text before it will be shown for plain-text and markdown release notes. This, for example, can be used to adapting release notes based on currently installed version, but it could also open up styling release notes in other ways.
* Adds sparkle:format="markdown" option to <description> element for embedded release notes (in addition to already existingsparkle:format="plain-text" option)
* Adds support for generate_appcast to handle markdown release note files and embedded release notes.
* Adds a MARKDOWN test mode to Sparkle Test App.
2025-12-19 18:10:18 -05:00

147 lines
7.8 KiB
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>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">
<![CDATA[## Version 2.0.1
* Added `markdown` support to release notes.
* Upgraded text kit system to use *improved* TextKit 2.
* Lists in markdown can contain multiple paragraphs
These paragraphs can even span multiple lines if they are long and wide enough to pass over the next line. These paragraphs can also contain useful information.
* Multiple levels of lists can also exist in Markdown
* Indented list items can contain information that are related to a parent list point. For example this could contain information about writing long paragraphs.
1. Markdown also supports numbered lists.
2. This is an example of a numbered list.
1. Even numbered lists can have multiple levels.
2. This is an example of numbered lists having multiple levels.
Markdown also allows writing standalone paragraphs that don't belong to any list or other associated element (such as blockquotes). This can be a powerful and normal used feature.
[Writers like markdown](https://daringfireball.net/projects/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>