Skip to content

Commit

Permalink
chore: upudate bump-version.sh, appcast.xml and testing-appcast.xml[s…
Browse files Browse the repository at this point in the history
…kip ci]
  • Loading branch information
fxliang committed Sep 30, 2024
1 parent 4da2637 commit 8a628fe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions update/appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<description>小狼毫 Appcast 更新頻道</description>
<language>zh</language>
<item>
<title>小狼毫 0.16.1</title>
<title>小狼毫 0.16.2</title>
<sparkle:releaseNotesLink>http://rime.github.io/release/weasel/release-notes.html</sparkle:releaseNotesLink>
<pubDate>Thu, 06 Jun 2024 19:29:28 +0800</pubDate>
<enclosure url="https://github.com/rime/weasel/releases/download/0.16.1/weasel-0.16.1.0-installer.exe"
sparkle:version="0.16.1"
<pubDate>Mon, 30 Sep 2024 11:51:10 +0800</pubDate>
<enclosure url="https://github.com/rime/weasel/releases/download/0.16.2/weasel-0.16.2.0-installer.exe"
sparkle:version="0.16.2"
type="application/octet-stream"/>
</item>
</channel>
Expand Down
18 changes: 11 additions & 7 deletions update/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ update_version_number() {
update_version_number build.bat VERSION_MAJOR $old_major $new_major
update_version_number build.bat VERSION_MINOR $old_minor $new_minor
update_version_number build.bat VERSION_PATCH $old_patch $new_patch
update_version_number xbuild.bat VERSION_MAJOR $old_major $new_major
update_version_number xbuild.bat VERSION_MINOR $old_minor $new_minor
update_version_number xbuild.bat VERSION_PATCH $old_patch $new_patch

if [[ $OSTYPE =~ darwin ]]; then
L_BOUND='[[:<:]]'
Expand Down Expand Up @@ -114,13 +117,14 @@ update_version_string update/appcast.xml
update_pub_date update/testing-appcast.xml
update_pub_date update/appcast.xml

update_changelog "${new_version}"
${VISUAL:-${EDITOR:-nano}} CHANGELOG.md
match_line "## ${new_version} " CHANGELOG.md || (
echo >&2 "CHANGELOG.md has no changes for version ${new_version}."
exit 1
)
bash update/write-release-notes.sh
# changelog manually, so disable this
#update_changelog "${new_version}"
#${VISUAL:-${EDITOR:-nano}} CHANGELOG.md
#match_line "## ${new_version} " CHANGELOG.md || (
# echo >&2 "CHANGELOG.md has no changes for version ${new_version}."
# exit 1
#)
#bash update/write-release-notes.sh

release_message="chore(release): ${new_version} :tada:"
release_tag="${new_version}"
Expand Down
8 changes: 4 additions & 4 deletions update/testing-appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<description>小狼毫測試版 Appcast 更新頻道</description>
<language>zh</language>
<item>
<title>小狼毫 0.16.1</title>
<title>小狼毫 0.16.2</title>
<sparkle:releaseNotesLink>http://rime.github.io/testing/weasel/release-notes.html</sparkle:releaseNotesLink>
<pubDate>Thu, 06 Jun 2024 19:29:28 +0800</pubDate>
<enclosure url="https://github.com/rime/weasel/releases/download/0.16.1/weasel-0.16.1.0-installer.exe"
sparkle:version="0.16.1"
<pubDate>Mon, 30 Sep 2024 11:51:10 +0800</pubDate>
<enclosure url="https://github.com/rime/weasel/releases/download/0.16.2/weasel-0.16.2.0-installer.exe"
sparkle:version="0.16.2"
type="application/octet-stream"/>
</item>
</channel>
Expand Down

0 comments on commit 8a628fe

Please sign in to comment.