diff --git a/assets/icon-square.png b/assets/icon-square.png new file mode 100644 index 0000000..b41d085 Binary files /dev/null and b/assets/icon-square.png differ diff --git a/assets/icon.png b/assets/icon.png index 4138ae5..7c4a2e1 100644 Binary files a/assets/icon.png and b/assets/icon.png differ diff --git a/src/AmtrakStatus.csproj b/src/AmtrakStatus.csproj index 3c6a8ae..e049234 100644 --- a/src/AmtrakStatus.csproj +++ b/src/AmtrakStatus.csproj @@ -7,6 +7,10 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + diff --git a/src/Gitinfo.txt b/src/Gitinfo.txt new file mode 100644 index 0000000..7df7e91 --- /dev/null +++ b/src/Gitinfo.txt @@ -0,0 +1 @@ +0.1.104 \ No newline at end of file diff --git a/src/Pages/Home.razor b/src/Pages/Home.razor index 4c20cff..ebb25c4 100644 --- a/src/Pages/Home.razor +++ b/src/Pages/Home.razor @@ -36,7 +36,7 @@ @@ -47,6 +47,21 @@ private string? StationCode { get; set; } + // 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}"; + } + } + private async Task RedirectToStat(string code) { StationCode = await JsRuntime.InvokeAsync("__TAURI__.tauri.invoke", "station", new { name = code });