Skip to content

Commit d2a30b3

Browse files
committed
Support showing multiple releases in appcast
MacVim r179 updated Sparkle to 2.5.2, which allows showing mutiple releases notes at once, depending on which version the user is upgrading from. That means we can now show multiple release notes in the appcast now, but only show versions down to r179 (since otherwise it would be confusing to older MacVim users upgrading if they see their own version in the release notes since older Sparkle wouldn't know how to filter them out). Add the relevant supporting CSS and wrap each include in its own section. The actual change to include multiple releases will be done later.
1 parent 02ef087 commit d2a30b3

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

appcast/_appcast_style.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<style>
22
:root { supported-color-schemes: light dark; color-scheme: light dark; }
3-
h1 { padding-bottom: .3em; border-bottom: 1px solid gray; }
3+
div h1 { padding-bottom: .3em; border-bottom: 1px solid gray; }
4+
5+
/* Older versions' release notes. Will be optionally shown in collapsed form if the user has upgraded across multiple versions. */
6+
div > details.oldVersionToggle > summary {
7+
font-size: 1.2em;
8+
border-radius: 5px;
9+
border-bottom: 3px solid #57c4d0;
10+
cursor: pointer;
11+
padding: 10px;
12+
}
13+
.toc {
14+
/* Sparkle does not seem to allow anchor links. Just disable the TOC. */
15+
display: none;
16+
}
17+
div.sparkle-installed-version { display:none; }
18+
div.sparkle-installed-version ~ section { display: none; }
419
</style>

appcast/_prerelease.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<title>MacVim prerelease-180.2</title>
44
<description><![CDATA[
55
{% include_relative _appcast_style.css %}
6+
<div>
67
{% include releases/r180.2.html %}
8+
</div>
79
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/">Latest release notes &gt;</a></small></p>
810
]]></description>
911
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

appcast/_release.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<title>MacVim release-180</title>
33
<description><![CDATA[
44
{% include_relative _appcast_style.css %}
5+
<div>
56
{% include releases/r180.html %}
7+
</div>
68
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/latest">Latest release notes &gt;</a></small></p>
79
]]></description>
810
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

appcast/_release_legacy.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<title>MacVim release-180</title>
33
<description><![CDATA[
44
{% include_relative _appcast_style.css %}
5+
<div>
56
{% include releases/r180.html %}
7+
</div>
68
<p><br /><small><a href="https://github.com/macvim-dev/macvim/releases/latest">Latest release notes &gt;</a></small></p>
79
]]></description>
810
<sparkle:fullReleaseNotesLink>https://github.com/macvim-dev/macvim/releases</sparkle:fullReleaseNotesLink>

0 commit comments

Comments
 (0)