remove linux update url
This commit is contained in:
@@ -13,7 +13,6 @@ public class AppUpdater
|
|||||||
[JsonConverter(typeof(VersionConverter))]
|
[JsonConverter(typeof(VersionConverter))]
|
||||||
public Version Version { get; set; }
|
public Version Version { get; set; }
|
||||||
public string DownloadUrl { get; set; }
|
public string DownloadUrl { get; set; }
|
||||||
public string DownloadUrlLinux { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private const string UPDATE_URL = "https://git.pilzinsel64.de/litw-refined/minecraft-modpack-updater/-/snippets/3/raw/main/updates.json";
|
private const string UPDATE_URL = "https://git.pilzinsel64.de/litw-refined/minecraft-modpack-updater/-/snippets/3/raw/main/updates.json";
|
||||||
@@ -62,7 +61,7 @@ public class AppUpdater
|
|||||||
Stream downloadStream = null;
|
Stream downloadStream = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var url = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? info.DownloadUrlLinux : info.DownloadUrl;
|
var url = info.DownloadUrl;
|
||||||
downloadStream = await client.GetStreamAsync(url);
|
downloadStream = await client.GetStreamAsync(url);
|
||||||
await downloadStream.CopyToAsync(tempFileStream);
|
await downloadStream.CopyToAsync(tempFileStream);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user