mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: get latest version info from sourcegit-scm.github.io instead of api.github.com (#75)
This commit is contained in:
parent
69d9edf963
commit
37ca149970
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ namespace SourceGit
|
||||||
{
|
{
|
||||||
// Fetch lastest release information.
|
// Fetch lastest release information.
|
||||||
var client = new HttpClient() { Timeout = TimeSpan.FromSeconds(2) };
|
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.
|
// Parse json into Models.Version.
|
||||||
var ver = JsonSerializer.Deserialize(data, JsonCodeGen.Default.Version);
|
var ver = JsonSerializer.Deserialize(data, JsonCodeGen.Default.Version);
|
||||||
|
|
Loading…
Reference in a new issue