Compare commits

..

2 Commits

Author SHA1 Message Date
sa 5dabf26fe3 update version code 2026-06-08 12:19:48 +08:00
sa b2baee05ef update version code and update info 2026-06-08 12:19:05 +08:00
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
b43527c b43527c
60176fa 60176fa
8cd942b 8cd942b
83acd30 83acd30
b2baee0
+3 -3
View File
@@ -18,7 +18,7 @@ require 'net/http'
require 'uri' require 'uri'
# @type const RELEASE_SERIAL_CODE: String # @type const RELEASE_SERIAL_CODE: String
RELEASE_SERIAL_CODE = '60176fa' RELEASE_SERIAL_CODE = 'b2baee0'
# @type const CHANNEL: String # @type const CHANNEL: String
CHANNEL = 'master' CHANNEL = 'master'
# @type const VERSION_LIST_URL: String # @type const VERSION_LIST_URL: String
@@ -42,7 +42,6 @@ class UpdateManager
end end
rescue StandardError => e rescue StandardError => e
MethodExecutor.record('error', 'updates', "Failed to fetch version list: #{e}") MethodExecutor.record('error', 'updates', "Failed to fetch version list: #{e}")
nil
end end
# rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/MethodLength
@@ -65,7 +64,8 @@ class UpdateManager
end end
latest = lines.last latest = lines.last
MethodExecutor.record('info', 'updates', "Newer version #{latest} available (current: #{RELEASE_SERIAL_CODE}).") MethodExecutor.record('info', 'updates',
"Newer version #{latest} available (current: #{RELEASE_SERIAL_CODE}), use git to update.")
{ type: :NewerAvailable, version: latest } { type: :NewerAvailable, version: latest }
end end
# rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/MethodLength