Skip to content

Commit

Permalink
Fix updater URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Disquse committed Nov 12, 2021
1 parent 92a4661 commit 9b1cb77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UI/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static async Task<bool> DownloadPlugin(Action<long, long>? loadProgress)
return false;
}

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

Expand Down
4 changes: 2 additions & 2 deletions UI/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace AnimKit.UI
{
internal static class Updater
{
public static Version CurrentVersion { get; } = new(1, 0, 1);
public static Version CurrentVersion { get; } = new(1, 0, 2);

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

Expand Down Expand Up @@ -67,7 +67,7 @@ public static UpdateAction CheckVersion()

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

Expand Down
2 changes: 1 addition & 1 deletion VERSIONS.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"UI": "1.0.1",
"UI": "1.0.2",
"CLI": "1.0.0",
"Plugin": "1.0.0"
}

0 comments on commit 9b1cb77

Please sign in to comment.