amtkstat/src/Components/GitVersion.razor
Tony Bark bd98119710 No more code in Home.razor
- All functionality has been modularized to their new respective components (I love Blazor)
- Minor versions are now in the triple digits, patches are in the double digits
2024-09-17 12:15:55 -04:00

19 lines
No EOL
506 B
Text

@PrintVersion
@code
{
// Bit of a workaround until I get native version from Tauri.
// Regardless, it's useful for printing the commit hash alone.
private string PrintVersion
{
get
{
var major = ThisAssembly.Git.SemVer.Major;
var minor = ThisAssembly.Git.SemVer.Minor;
var patch = ThisAssembly.Git.SemVer.Patch;
var commit = ThisAssembly.Git.Commit;
return $"v{major}.{minor}.{patch}-{commit}";
}
}
}