From 37ca14997076af9cd8377ff4c690d0a98b9b10ca Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 16 Apr 2024 09:23:54 +0800 Subject: [PATCH] fix: get latest version info from sourcegit-scm.github.io instead of api.github.com (#75) --- src/App.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 8ef9e336..eeacb56d 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -165,7 +165,7 @@ namespace SourceGit { // Fetch lastest release information. var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(2) }; - var data = await client.GetStringAsync("https://api.github.com/repos/sourcegit-scm/sourcegit/releases/latest"); + var data = await client.GetStringAsync("https://sourcegit-scm.github.io/data/version.json"); // Parse json into Models.Version. var ver = JsonSerializer.Deserialize(data, JsonCodeGen.Default.Version);