Add ReleaseIdentifier to logging
This commit is contained in:
parent
1a447627c7
commit
31e97defd1
4 changed files with 31 additions and 15 deletions
|
|
@ -18,6 +18,8 @@ namespace LibationAvalonia
|
|||
public class App : Application
|
||||
{
|
||||
public static bool IsWindows => PlatformID is PlatformID.Win32NT;
|
||||
|
||||
//This is trye for both linux and mac. We'll need a way to dintinguis between those two after we get mac to actually run.
|
||||
public static bool IsUnix => PlatformID is PlatformID.Unix;
|
||||
|
||||
public static readonly PlatformID PlatformID = Environment.OSVersion.Platform;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,11 @@ namespace LibationAvalonia
|
|||
var classicLifetimeTask = Task.Run(() => new ClassicDesktopStyleApplicationLifetime());
|
||||
var appBuilderTask = Task.Run(BuildAvaloniaApp);
|
||||
|
||||
if (App.IsWindows)
|
||||
AppScaffolding.LibationScaffolding.SetReleaseIdentifier(AppScaffolding.ReleaseIdentifier.WindowsAvalonia);
|
||||
else if (App.IsUnix)
|
||||
AppScaffolding.LibationScaffolding.SetReleaseIdentifier(AppScaffolding.ReleaseIdentifier.LinuxAvalonia);
|
||||
|
||||
|
||||
if (!App.SetupRequired)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue