forked from Stephanzion/YandexMusicBetaMod
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (22 loc) · 924 Bytes
/
Program.cs
File metadata and controls
29 lines (22 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Reflection;
using Avalonia;
using YandexMusicPatcherGui.Services;
namespace YandexMusicPatcherGui;
internal static class Program
{
public static readonly string RepoUrl = "https://github.com/DarkPlayOff/YandexMusicExtMod";
public static readonly IPlatformService PlatformService = PlatformServiceFactory.Create();
public static readonly string TempPath = Path.Combine(Path.GetTempPath(), "YandexMusicPatcher");
public static readonly string ModPath = PlatformService.GetModPath();
public static readonly string Version = Assembly.GetEntryAssembly()?.GetName().Version?.ToString() ?? "0.0.0";
[STAThread]
public static void Main(string[] args)
{
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
private static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<AppMain>()
.UsePlatformDetect();
}
}