mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Update regex
This commit is contained in:
parent
40a2a77b09
commit
e5fd477379
2 changed files with 2 additions and 2 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -46,7 +46,7 @@ jobs:
|
||||||
if: matrix.configuration == 'Release'
|
if: matrix.configuration == 'Release'
|
||||||
run: |
|
run: |
|
||||||
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}"
|
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}"
|
||||||
$match = [regex]::Match($content, 'AssemblyVersion\("(.+?)"\)')
|
$match = [regex]::Match($content, 'AssemblyVersion\("([0-9]+(?:\.[0-9]+){1,3})"\)')
|
||||||
$version = $match.Groups[1].Value
|
$version = $match.Groups[1].Value
|
||||||
echo $version
|
echo $version
|
||||||
echo "APP_VERSION=$version" >> $env:GITHUB_OUTPUT
|
echo "APP_VERSION=$version" >> $env:GITHUB_OUTPUT
|
||||||
|
|
|
@ -61,7 +61,7 @@ public override void CheckUpdate()
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
DebugHelper.WriteException(e, "GitHub update check failed");
|
DebugHelper.WriteException(e, "GitHub update check failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = UpdateStatus.UpdateCheckFailed;
|
Status = UpdateStatus.UpdateCheckFailed;
|
||||||
|
|
Loading…
Reference in a new issue