Skip to content

Commit 9b1cb77

Browse files
committed
Fix updater URLs
1 parent 92a4661 commit 9b1cb77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

UI/Plugin.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static async Task<bool> DownloadPlugin(Action<long, long>? loadProgress)
5656
return false;
5757
}
5858

59-
string downloadURL = string.Format($"{Constants.RepoURL}/releases/download/%s/AnimKit.Plugin.zip", ActualVersion.ToString());
59+
string downloadURL = $"{Constants.RepoURL}/releases/download/v{ActualVersion}/AnimKit.Plugin.zip";
6060
return await Utils.DownloadFile(downloadURL, PluginArchive, loadProgress);
6161
}
6262

UI/Updater.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace AnimKit.UI
1010
{
1111
internal static class Updater
1212
{
13-
public static Version CurrentVersion { get; } = new(1, 0, 1);
13+
public static Version CurrentVersion { get; } = new(1, 0, 2);
1414

1515
public static Version ActualVersion => Utils.ActualVersions.UI;
1616

@@ -67,7 +67,7 @@ public static UpdateAction CheckVersion()
6767

6868
public static async Task<bool> DownloadLatest(Action<long, long>? loadProgress)
6969
{
70-
string downloadURL = string.Format($"{Constants.RepoURL}/releases/download/%s/AnimKit.UI.zip", ActualVersion.ToString());
70+
string downloadURL = $"{Constants.RepoURL}/releases/download/v{ActualVersion}/AnimKit.UI.zip";
7171
return await Utils.DownloadFile(downloadURL, UpdaterArchive, loadProgress);
7272
}
7373

VERSIONS.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"UI": "1.0.1",
2+
"UI": "1.0.2",
33
"CLI": "1.0.0",
44
"Plugin": "1.0.0"
55
}

0 commit comments

Comments
 (0)