Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace WheelWizard.CustomDistributions.Domain;

public interface IRetroRewindApi
{
[Get("/RetroRewind/RetroRewind.zip")]
[Get("/RetroRewind/zip/RetroRewind.zip")]
Task<HttpContent> DownloadRetroRewindZip();

[Get("/RetroRewind/RetroRewindVersion.txt")]
Expand Down
4 changes: 3 additions & 1 deletion WheelWizard/Features/CustomDistributions/RetroRewind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,15 @@ private async Task<List<UpdateData>> GetAllVersionData()
var description = parts[3].Trim();
if (string.IsNullOrWhiteSpace(version) || string.IsNullOrWhiteSpace(url) || string.IsNullOrWhiteSpace(path))
continue;
// Fix old URLs using HTTP to the new endpoint
var fixedUrl = url.Replace(Endpoints.OldRRUrl, Endpoints.RRUrl);
if (!SemVersion.TryParse(version, out var _))
continue;
var parsedVersion = SemVersion.Parse(version);
var updateData = new UpdateData
{
Version = parsedVersion,
Url = url,
Url = fixedUrl,
Description = description,
};
versions.Add(updateData);
Expand Down
3 changes: 2 additions & 1 deletion WheelWizard/Services/Endpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public static class Endpoints
// TODO: Refactor all the URLs seen below

// Retro Rewind
public const string RRUrl = "http://update.rwfc.net:8000/";
public const string OldRRUrl = "http://update.rwfc.net:8000/";
public const string RRUrl = "https://rwfc.net/updates/";
public const string RRZipUrl = RRUrl + "RetroRewind/zip/RetroRewind.zip";
public const string RRVersionUrl = RRUrl + "RetroRewind/RetroRewindVersion.txt";
public const string RRVersionDeleteUrl = RRUrl + "RetroRewind/RetroRewindDelete.txt";
Expand Down
Loading