Skip to content

Commit

Permalink
fix(core): 暂时修复无法检查更新的问题 (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Dec 5, 2023
1 parent 0a56520 commit 4e5c548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
### Fixed

- 修复话题排序问题
- 暂时修复无法检查更新的问题

## [0.9.4] - 2023-02-05

Expand Down
5 changes: 2 additions & 3 deletions lib/core/repository/version_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class VersionRepository {

/// 更新文件的下载地址
Future<String> updateUrl() async {
return 'https://ghproxy.com/https://github.com/he0119/smart-home-flutter/releases/download/v${await onlineVersion}/${await filename}';
return 'https://github.com/he0119/smart-home-flutter/releases/download/v${await onlineVersion}/${await filename}';
}

/// 当前版本
Expand Down Expand Up @@ -79,8 +79,7 @@ class VersionRepository {
Future<Version> _getOnlineVersion() async {
final versionRegex = RegExp(
r'releases/tag/v([\d.]+)(-([0-9A-Za-z\-.]+))?(\+([0-9A-Za-z\-.]+))?');
const url =
'https://ghproxy.com/https://github.com/he0119/smart-home-flutter/releases/latest';
const url = 'https://github.com/he0119/smart-home-flutter/releases/latest';
try {
final response = await http.get(Uri.parse(url));
_fileExist = response.body.contains(await filename);
Expand Down

0 comments on commit 4e5c548

Please sign in to comment.