Compare commits

...

1 Commits
1.0.1 ... main

Author SHA1 Message Date
fd20b19d8f Fixed Version String replacements
All checks were successful
Build and Relase / build-release (push) Successful in 2m14s
Build and Relase / create-release (push) Successful in 24s
2025-01-14 20:23:07 +01:00

View File

@ -19,15 +19,15 @@ function Replace-Version {
}
# Update SoraV2BatteryHelperSetup.vdproj
$vdprojFile = "SoraV2BatteryHelperSetup\SoraV2BatteryHelperSetup.vdproj"
$vdprojFile = "SoraV2Utils_Setup\SoraV2Utils_Setup.vdproj"
$vdprojPattern = '(\s*)"ProductVersion" = "8:\d+\.\d+\.\d+"'
$vdprojReplacement = '$1"ProductVersion" = "8:' + $version + '"'
Replace-Version -filePath $vdprojFile -regexPattern $vdprojPattern -replacement $vdprojReplacement
# Update AssemblyInfo.cs files
$assemblyFiles = @(
"SoraV2BatteryHelperSvc\Properties\AssemblyInfo.cs",
"SoraV2BatteryHelperNotification\Properties\AssemblyInfo.cs"
"SoraV2Utils_Service\Properties\AssemblyInfo.cs",
"SoraV2Utils_Agent\Properties\AssemblyInfo.cs"
)
$assemblyVersionPattern = '(\s*)\[assembly: AssemblyVersion\("(\d+\.\d+\.\d+\.\d+)"\)\]'