Skip to content

Commit

Permalink
Roll version
Browse files Browse the repository at this point in the history
  • Loading branch information
wrdg committed May 27, 2024
1 parent ac17470 commit 30a9ee7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions KuruExtract/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
using Spectre.Console;
using Spectre.Console.Rendering;
using System.Diagnostics;
using System.Reflection;

namespace KuruExtract;
internal static class Constants
{
public static IRenderable Header =>
new Panel(new Markup("\nExtracts game content for DayZ\nby Wardog\n").Centered())
.Header($"ExtractDayZ v{Version}", Justify.Center)
.Header($"DayZExtract v{Version}", Justify.Center)
.SafeBorder()
.Border(BoxBorder.Heavy)
.Expand();

public static string Version =>
FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion ?? "0.0.0";
public static string Version
{
get
{
var version = Assembly.GetExecutingAssembly()?.GetName()?.Version;
return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "0.0.0";
}
}
}
5 changes: 3 additions & 2 deletions KuruExtract/KuruExtract.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
<AssemblyName>DayZExtract</AssemblyName>
<Company>Wardog</Company>
<Description>Extracts game content for DayZ</Description>
<FileVersion>1.0.6</FileVersion>
<InformationalVersion>1.0.6</InformationalVersion>
<FileVersion>1.0.7</FileVersion>
<InformationalVersion>1.0.7</InformationalVersion>
<Version>1.0.7</Version>
<ApplicationIcon>gear.ico</ApplicationIcon>
</PropertyGroup>

Expand Down

0 comments on commit 30a9ee7

Please sign in to comment.