test: test ci

This commit is contained in:
uye
2023-10-15 12:54:47 +08:00
parent eff4b259ba
commit 8dbbb66a42
2 changed files with 2 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ jobs:
run: |
$csprojPath = "src/MaaWpfGui/MaaWpfGui.csproj"
$csprojPath = Resolve-Path -Path $csprojPath
$tag = ${{ needs.meta.outputs.tag }} -replace '.*?/', ''
$tag = '${{ needs.meta.outputs.tag }}' -replace '.*?/', ''
$tag -match '\d+(\.\d+){0,3}'
$match = $Matches[0]
[xml]$csproj = Get-Content -Path $csprojPath

View File

@@ -79,9 +79,7 @@ namespace MaaWpfGui.ViewModels.UI
/// </summary>
public string CoreVersion => _coreVersion;
private static readonly string _uiVersion = FileVersionInfo
.GetVersionInfo(Application.ResourceAssembly.Location)
.ProductVersion.Split('+')[0];
private static readonly string _uiVersion = FileVersionInfo.GetVersionInfo(Application.ResourceAssembly.Location).ProductVersion.Split('+')[0];
/// <summary>
/// Gets the UI version.