Add: #391 開発中のブランチにベータ版のバージョン表記ができるよう整備・Bump version to 11.0-dev (#447)

* Add: #391 開発中のブランチにベータ版のバージョン表記ができるよう整備・Bump version to 11.0-dev

* Fix test
This commit is contained in:
KMY(雪あすか) 2024-01-12 09:35:17 +09:00 committed by GitHub
parent 2ef5fdb6fb
commit b044cbeb63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View file

@ -34,6 +34,7 @@ class SoftwareUpdateCheckService < BaseService
if ENV.fetch('UPDATE_CHECK_SOURCE', 'kmyblue') == 'kmyblue'
@version = "#{Mastodon::Version.kmyblue_major}.#{Mastodon::Version.kmyblue_minor}"
@version += '-lts' if Setting.check_lts_version_only
@version += '-dev' if Mastodon::Version.dev?
else
@version = Mastodon::Version.to_s.split('+')[0]
end