mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 05:32:54 -04:00
- 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
19 lines
No EOL
506 B
Text
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}";
|
|
}
|
|
}
|
|
} |