Skip to content

Commit

Permalink
从github和gitee获取版本
Browse files Browse the repository at this point in the history
  • Loading branch information
hupo376787 committed Oct 28, 2024
1 parent 1a5e289 commit 7b59cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion WeiboAlbumDownloader/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,12 @@
Foreground="Gray" />
<TextBlock
x:Name="TextBlock_WeiboDesc"
Margin="8,0"
HorizontalAlignment="Center"
d:Text="微博[888] 关注[274] 粉丝[7.9万] 分组[1]"
FontSize="16"
Foreground="Gray" />
Foreground="Gray"
TextWrapping="Wrap" />
</StackPanel>
<ListView
x:Name="ListView_Messages"
Expand Down
5 changes: 3 additions & 2 deletions WeiboAlbumDownloader/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial class MainWindow : MicaWindow
{
//发行说明:
//①此处升级一下版本号
//②Github release新建一个新版本Tag
//②Github/Gitee release新建一个新版本Tag
//③上传压缩包删除Settings.json以及uidList.txt
double currentVersion = 3.6;

Expand Down Expand Up @@ -93,7 +93,8 @@ private async Task GetVersion()
var latestVersionString = await GithubHelper.GetLatestVersion();
if (string.IsNullOrEmpty(latestVersionString))
{
AppendLog("从https://github.com/hupo376787/WeiboAlbumDownloader/releases获取最新版失败,请检查网络或稍后再试", MessageEnum.Warning);
//AppendLog("从https://github.com/hupo376787/WeiboAlbumDownloader/releases获取最新版失败,请检查网络或稍后再试", MessageEnum.Warning);
latestVersionString = await GithubHelper.GetGiteeLatestVersion();
}
else
{
Expand Down

0 comments on commit 7b59cd1

Please sign in to comment.