UVAtlas/build/versioninfo.ps1
2024-09-04 17:50:54 -07:00

12 lines
300 B
PowerShell

<#
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
#>
param(
[string]$version
)
$file = 'UVAtlasTool\uvatlas.rc'
$versionComma = $version.Replace(".", ",")
(Get-Content $file).replace('1,0,0,0', $versionComma).replace('1.0.0.0', $version) | Set-Content $file
(Get-Content $file)