feat: add Gitea Releases auto-update check (v1.0.3)

This commit is contained in:
LZX committed 2026-11-12 00:57:40 +08:00
1 parent 369dbb436d
commit e40383b290
12 files changed
+676 -4

No files matched your search

+19 -1
View File
@@ -1882,5 +1882,23 @@
"gitVerifyAndSave": "Verify & Save",
"gitAuthTypeToken": "Personal Access Token",
"gitAuthTypeSsh": "SSH Key Pair",
"gitPlatformGeneric": "Generic / Self-hosted Git"
"gitPlatformGeneric": "Generic / Self-hosted Git",
"aboutAndUpdatesSection": "About & Updates",
"appVersionLabel": "App Version",
"autoCheckUpdates": "Auto-check updates on launch",
"autoCheckUpdatesSubtitle": "Automatically check Gitea Releases when opening the app",
"checkForUpdates": "Check for Updates",
"checkingUpdates": "Checking for updates...",
"alreadyLatestVersion": "You are already on the latest version",
"updateCheckFailed": "Failed to check for updates, please check your network",
"newVersionAvailableTitle": "New Version {version}",
"@newVersionAvailableTitle": {
"placeholders": {
"version": {
"type": "String"
}
}
},
"downloadUpdate": "Download Update",
"dontShowAgainForVersion": "Ignore This Version"
}
+66
View File
@@ -5733,6 +5733,72 @@ abstract class AppLocalizations {
/// In zh, this message translates to:
/// **'通用 / 自建 Git'**
String get gitPlatformGeneric;
/// No description provided for @aboutAndUpdatesSection.
///
/// In zh, this message translates to:
/// **'关于与更新'**
String get aboutAndUpdatesSection;
/// No description provided for @appVersionLabel.
///
/// In zh, this message translates to:
/// **'当前版本'**
String get appVersionLabel;
/// No description provided for @autoCheckUpdates.
///
/// In zh, this message translates to:
/// **'启动时自动检查更新'**
String get autoCheckUpdates;
/// No description provided for @autoCheckUpdatesSubtitle.
///
/// In zh, this message translates to:
/// **'每次打开应用时自动检查 Gitea 最新版本'**
String get autoCheckUpdatesSubtitle;
/// No description provided for @checkForUpdates.
///
/// In zh, this message translates to:
/// **'检查更新'**
String get checkForUpdates;
/// No description provided for @checkingUpdates.
///
/// In zh, this message translates to:
/// **'正在检查更新...'**
String get checkingUpdates;
/// No description provided for @alreadyLatestVersion.
///
/// In zh, this message translates to:
/// **'当前已是最新版本'**
String get alreadyLatestVersion;
/// No description provided for @updateCheckFailed.
///
/// In zh, this message translates to:
/// **'检查更新失败,请检查网络连接'**
String get updateCheckFailed;
/// No description provided for @newVersionAvailableTitle.
///
/// In zh, this message translates to:
/// **'发现新版本 {version}'**
String newVersionAvailableTitle(String version);
/// No description provided for @downloadUpdate.
///
/// In zh, this message translates to:
/// **'前往下载'**
String get downloadUpdate;
/// No description provided for @dontShowAgainForVersion.
///
/// In zh, this message translates to:
/// **'不再提示'**
String get dontShowAgainForVersion;
}
class _AppLocalizationsDelegate
+37
View File
@@ -3389,4 +3389,41 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get gitPlatformGeneric => 'Generic / Self-hosted Git';
@override
String get aboutAndUpdatesSection => 'About & Updates';
@override
String get appVersionLabel => 'App Version';
@override
String get autoCheckUpdates => 'Auto-check updates on launch';
@override
String get autoCheckUpdatesSubtitle =>
'Automatically check Gitea Releases when opening the app';
@override
String get checkForUpdates => 'Check for Updates';
@override
String get checkingUpdates => 'Checking for updates...';
@override
String get alreadyLatestVersion => 'You are already on the latest version';
@override
String get updateCheckFailed =>
'Failed to check for updates, please check your network';
@override
String newVersionAvailableTitle(String version) {
return 'New Version $version';
}
@override
String get downloadUpdate => 'Download Update';
@override
String get dontShowAgainForVersion => 'Ignore This Version';
}
+35
View File
@@ -3260,4 +3260,39 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get gitPlatformGeneric => '通用 / 自建 Git';
@override
String get aboutAndUpdatesSection => '关于与更新';
@override
String get appVersionLabel => '当前版本';
@override
String get autoCheckUpdates => '启动时自动检查更新';
@override
String get autoCheckUpdatesSubtitle => '每次打开应用时自动检查 Gitea 最新版本';
@override
String get checkForUpdates => '检查更新';
@override
String get checkingUpdates => '正在检查更新...';
@override
String get alreadyLatestVersion => '当前已是最新版本';
@override
String get updateCheckFailed => '检查更新失败,请检查网络连接';
@override
String newVersionAvailableTitle(String version) {
return '发现新版本 $version';
}
@override
String get downloadUpdate => '前往下载';
@override
String get dontShowAgainForVersion => '不再提示';
}
+19 -1
View File
@@ -1882,5 +1882,23 @@
"gitVerifyAndSave": "验证并保存",
"gitAuthTypeToken": "个人访问令牌",
"gitAuthTypeSsh": "SSH 密钥对",
"gitPlatformGeneric": "通用 / 自建 Git"
"gitPlatformGeneric": "通用 / 自建 Git",
"aboutAndUpdatesSection": "关于与更新",
"appVersionLabel": "当前版本",
"autoCheckUpdates": "启动时自动检查更新",
"autoCheckUpdatesSubtitle": "每次打开应用时自动检查 Gitea 最新版本",
"checkForUpdates": "检查更新",
"checkingUpdates": "正在检查更新...",
"alreadyLatestVersion": "当前已是最新版本",
"updateCheckFailed": "检查更新失败,请检查网络连接",
"newVersionAvailableTitle": "发现新版本 {version}",
"@newVersionAvailableTitle": {
"placeholders": {
"version": {
"type": "String"
}
}
},
"downloadUpdate": "前往下载",
"dontShowAgainForVersion": "不再提示"
}