Merge pull request #1857 from tgstation/FixUpdates [NugetDeploy]

Fix the homepage logo not working on Windows after updating
This commit is contained in:
Jordan Dominion
2024-08-11 19:44:02 -04:00
committed by GitHub
@@ -152,11 +152,17 @@ namespace Tgstation.Server.Host.Controllers
[HttpGet("logo.svg")]
public IActionResult GetLogo()
{
var logoFileName = platformIdentifier.IsWindows // these are different because of motherfucking line endings -_-
? LogoSvgWindowsName
: LogoSvgLinuxName;
// these are different because of motherfucking line endings -_-
if (platformIdentifier.IsWindows)
{
VirtualFileResult? result = this.TryServeFile(hostEnvironment, logger, $"{LogoSvgWindowsName}.svg");
if (result != null)
return result;
return (IActionResult?)this.TryServeFile(hostEnvironment, logger, $"{logoFileName}.svg") ?? NotFound();
// BUT THE UPDATE PACKAGES ARE BUILT ON LINUX RAAAAAGH
}
return (IActionResult?)this.TryServeFile(hostEnvironment, logger, $"{LogoSvgLinuxName}.svg") ?? NotFound();
}
/// <summary>