Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2a30b3

Browse files
committed
Support showing multiple releases in appcast
MacVim r179 updated Sparkle to 2.5.2, which allows showing mutiplereleases notes at once, depending on which version the user is upgradingfrom. That means we can now show multiple release notes in the appcastnow, but only show versions down to r179 (since otherwise it would beconfusing to older MacVim users upgrading if they see their own versionin the release notes since older Sparkle wouldn't know how to filterthem out).Add the relevant supporting CSS and wrap each include in its ownsection. The actual change to include multiple releases will be donelater.
1 parent02ef087 commitd2a30b3

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)

[8]ページ先頭

©2009-2025 Movatter.jp