From 7ccdee1bf7064c17d013c0794a3a72519d25a4c8 Mon Sep 17 00:00:00 2001 From: Doobly Date: Sat, 6 Jun 2026 16:13:33 +1000 Subject: [PATCH 1/2] swap cdn --- UnitystationLauncher.Tests/Models/Api/ServerTests.cs | 8 ++++---- .../Assets/org.unitystation.StationHub.metainfo.xml | 10 +++++----- UnitystationLauncher/Constants/ApiUrls.cs | 2 +- docs/flatpak-maintenance.md | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/UnitystationLauncher.Tests/Models/Api/ServerTests.cs b/UnitystationLauncher.Tests/Models/Api/ServerTests.cs index 16bfa9f4..6c35727a 100644 --- a/UnitystationLauncher.Tests/Models/Api/ServerTests.cs +++ b/UnitystationLauncher.Tests/Models/Api/ServerTests.cs @@ -59,7 +59,7 @@ public static void HasTrustedUrlSource_ShouldReturnFalseWhenNull() [Theory] [InlineData("http://myshadyunitystationdownload.test")] [InlineData("http://127.0.0.1")] - [InlineData("http://unitystationfile.b-cdn.net")] + [InlineData("http://cdn.unitystation.org")] [InlineData(" ")] [InlineData("")] public static void HasTrustedUrlSource_ShouldReturnFalseWhenUntrusted(string url) @@ -79,9 +79,9 @@ public static void HasTrustedUrlSource_ShouldReturnTrueWhenTrusted() { Server server = new("Unit Test", 0, "127.0.0.1", 0) { - WinDownload = "https://unitystationfile.b-cdn.net/Windows", - OsxDownload = "https://unitystationfile.b-cdn.net/Mac", - LinuxDownload = "https://unitystationfile.b-cdn.net/Linux" + WinDownload = "https://cdn.unitystation.org/Windows", + OsxDownload = "https://cdn.unitystation.org/Mac", + LinuxDownload = "https://cdn.unitystation.org/Linux" }; server.HasTrustedUrlSource.Should().BeTrue(); diff --git a/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml b/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml index 70f08219..261ff8a7 100644 --- a/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml +++ b/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml @@ -44,23 +44,23 @@ StationHub news panel - https://unitystationfile.b-cdn.net/screenshots/stationhub2.png + https://cdn.unitystation.org/screenshots/stationhub2.png StationHub servers panel - https://unitystationfile.b-cdn.net/screenshots/stationhub.png + https://cdn.unitystation.org/screenshots/stationhub.png A parking accident angers an official - https://unitystationfile.b-cdn.net/screenshots/unitystation-shuttle.png + https://cdn.unitystation.org/screenshots/unitystation-shuttle.png A monkey god appears in the station's chapel - https://unitystationfile.b-cdn.net/screenshots/unitystation-monke.png + https://cdn.unitystation.org/screenshots/unitystation-monke.png UI for ordering cargo from Centcomm - https://unitystationfile.b-cdn.net/screenshots/cargo-ui.jpg + https://cdn.unitystation.org/screenshots/cargo-ui.jpg diff --git a/UnitystationLauncher/Constants/ApiUrls.cs b/UnitystationLauncher/Constants/ApiUrls.cs index 606e2df0..b4c177be 100644 --- a/UnitystationLauncher/Constants/ApiUrls.cs +++ b/UnitystationLauncher/Constants/ApiUrls.cs @@ -13,7 +13,7 @@ public static class ApiUrls public static string Latest10VersionsUrl => $"{ChangelogBaseUrl}/all-changes?format=json&limit=10"; public static string LatestBlogPosts => $"{ChangelogBaseUrl}/posts/?format=json"; - private static string CdnBaseUrl => "https://unitystationfile.b-cdn.net"; + private static string CdnBaseUrl => "https://cdn.unitystation.org"; public static string GoodFilesBaseUrl => $"{CdnBaseUrl}/GoodFiles"; public static string AllowedGoodFilesUrl => $"{GoodFilesBaseUrl}/AllowGoodFiles.json"; diff --git a/docs/flatpak-maintenance.md b/docs/flatpak-maintenance.md index 3bbd4e25..0cf1bc3d 100644 --- a/docs/flatpak-maintenance.md +++ b/docs/flatpak-maintenance.md @@ -108,10 +108,10 @@ appstream-util validate org.unitystation.StationHub.metainfo.xml If you get errors like these, they can be ignored. ``` org.unitystation.StationHub.metainfo.xml: FAILED: -• attribute-invalid : width too large [https://unitystationfile.b-cdn.net/screenshots/unitystation-monke.png] maximum is 1600px -• attribute-invalid : height too large [https://unitystationfile.b-cdn.net/screenshots/unitystation-monke.png] maximum is 900px -• attribute-invalid : width too large [https://unitystationfile.b-cdn.net/screenshots/cargo-ui.jpg] maximum is 1600px -• attribute-invalid : height too large [https://unitystationfile.b-cdn.net/screenshots/cargo-ui.jpg] maximum is 900px +• attribute-invalid : width too large [https://cdn.unitystation.org/screenshots/unitystation-monke.png] maximum is 1600px +• attribute-invalid : height too large [https://cdn.unitystation.org/screenshots/unitystation-monke.png] maximum is 900px +• attribute-invalid : width too large [https://cdn.unitystation.org/screenshots/cargo-ui.jpg] maximum is 1600px +• attribute-invalid : height too large [https://cdn.unitystation.org/screenshots/cargo-ui.jpg] maximum is 900px ``` ### Desktop entry From 55297ac7db4121f52e001f97a6ce213bd0e7f897 Mon Sep 17 00:00:00 2001 From: Doobly Date: Sat, 6 Jun 2026 16:32:52 +1000 Subject: [PATCH 2/2] Fix space between namespace and line endings --- UnitystationLauncher/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UnitystationLauncher/Program.cs b/UnitystationLauncher/Program.cs index 1aca73cf..55d3a359 100644 --- a/UnitystationLauncher/Program.cs +++ b/UnitystationLauncher/Program.cs @@ -3,6 +3,7 @@ using Avalonia.ReactiveUI; namespace UnitystationLauncher; + public static class Program { public static void Main(string[] args) => BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);