Skip to content

Commit

Permalink
fix(steam): enable releases with incremented versioning
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <[email protected]>
  • Loading branch information
mikeee committed Oct 28, 2024
1 parent 9f695e4 commit 4b4a985
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions disabled/steam/update.ps1 → automatic/steam/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ function global:au_GetLatest {

if ( $checksum -ne $oldChecksum ) {
$versionDate = Get-Date -Format "yyMMdd"
$finalVersion = (Get-Item $tempfile).VersionInfo.FileVersion + $versionDate
$version = [version](Get-Item $tempfile).VersionInfo.FileVersion + $versionDate
} else {
[xml]$xmlPackage = Get-Content -Path '.\steam.nuspec'
$finalVersion = $xmlPackage.package.metadata.version
$version = [version]$xmlPackage.package.metadata.version
}

$versionParts = $version.ToString().Split('.')

$versionMajor = [int]$versionParts[0] + 1

$finalVersion = "{0}.{1}.{2}.{3}" -f $versionMajor, $version.Minor, $version.Build, $version.Revision

return @{
URL = $releases
Expand Down

0 comments on commit 4b4a985

Please sign in to comment.