0
0
mirror of https://github.com/sp-tarkov/patcher.git synced 2025-02-12 14:50:45 -05:00

add version output

This commit is contained in:
IsWaffle 2023-11-17 11:33:19 -05:00
parent a3d9bf0799
commit 0e83ee04d7
5 changed files with 15 additions and 5 deletions

View File

@ -7,6 +7,7 @@ using ReactiveUI;
using System.Reactive;
using System;
using System.Linq;
using System.Reflection;
using PatcherUtils.Model;
namespace PatchClient
@ -46,6 +47,10 @@ namespace PatchClient
PatchLogger.LogInfo("Running with autoclose");
}
var version = Assembly.GetExecutingAssembly().GetName().Version;
PatchLogger.LogInfo($"Patch Client v{version?.ToString() ?? "N/A"}");
desktop.MainWindow = new MainWindow
{
DataContext = new MainWindowViewModel(autoClose, debugOutput),

View File

@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Nullable>enable</Nullable>
<AssemblyVersion>2.10.1</AssemblyVersion>
<FileVersion>2.10.1</FileVersion>
<AssemblyVersion>2.10.2</AssemblyVersion>
<FileVersion>2.10.2</FileVersion>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />

View File

@ -7,6 +7,7 @@ using PatchGenerator.Views;
using ReactiveUI;
using System.Reactive;
using System;
using System.Reflection;
using PatcherUtils.Model;
namespace PatchGenerator
@ -26,6 +27,10 @@ namespace PatchGenerator
public override void OnFrameworkInitializationCompleted()
{
var version = Assembly.GetExecutingAssembly().GetName().Version;
PatchLogger.LogInfo($"Patch Generator v{version?.ToString() ?? "N/A"}");
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.Startup += Desktop_Startup;

View File

@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Nullable>enable</Nullable>
<AssemblyVersion>2.10.1</AssemblyVersion>
<FileVersion>2.10.1</FileVersion>
<AssemblyVersion>2.10.2</AssemblyVersion>
<FileVersion>2.10.2</FileVersion>
</PropertyGroup>
<ItemGroup>

Binary file not shown.