updated git repository url
This commit is contained in:
@@ -32,7 +32,7 @@ public class GiteaClient(string ServerUrl)
|
||||
{
|
||||
public async Task<Release> GetLatestRelease(string user, string repo)
|
||||
{
|
||||
string url = $"{ServerUrl}//api/v1/repos/{user}/{repo}/releases/latest";
|
||||
string url = $"{ServerUrl}/api/v1/repos/{user}/{repo}/releases/latest";
|
||||
return await NetworkHelper.DownloadStringAndDeserialize<Release>(url);
|
||||
}
|
||||
}
|
||||
@@ -10,15 +10,17 @@ public class UpdateHelper
|
||||
private readonly IOPath executablePathOld;
|
||||
private readonly IOPath executablePathNew;
|
||||
|
||||
private readonly GiteaConfig _giteaConfig;
|
||||
|
||||
public class GiteaConfig
|
||||
{
|
||||
[JsonRequired] public required string serverUrl { get; set; }
|
||||
[JsonRequired] public required string user { get; set; }
|
||||
[JsonRequired] public required string repo { get; set; }
|
||||
|
||||
public string GetRepoUrl() => $"{serverUrl}/{user}/{repo}";
|
||||
}
|
||||
|
||||
private GiteaConfig _giteaConfig;
|
||||
|
||||
public UpdateHelper(GiteaConfig giteaConfig)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user