Add Windows desktop app
Windows desktop build / publish (push) Canceled after 0s

This commit is contained in:
bulava92
2026-10-28 16:04:52 +03:00
parent 1556470bcb
commit 29a8b935fb
18 changed files with 1444 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
namespace SHD.Windows;
internal enum ShdEnvironment
{
Production,
Dev
}
internal static class ShdEnvironmentExtensions
{
public static string BaseUrl(this ShdEnvironment environment) => environment switch
{
ShdEnvironment.Dev => "https://dev-shd.xyz.su",
_ => "https://shd.xyz.su"
};
public static string DisplayName(this ShdEnvironment environment) => environment switch
{
ShdEnvironment.Dev => "SHD Dev",
_ => "SHD Production"
};
public static bool IsDevelopmentHost(string host) =>
host.Equals("dev-shd.xyz.su", StringComparison.OrdinalIgnoreCase);
public static bool IsProductionHost(string host) =>
host.Equals("shd.xyz.su", StringComparison.OrdinalIgnoreCase);
public static bool IsInternalHost(string host) =>
host.Equals("xyz.su", StringComparison.OrdinalIgnoreCase) ||
host.EndsWith(".xyz.su", StringComparison.OrdinalIgnoreCase);
}