Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit a442222

Browse files
committed
Add SDK version to the installer version table
1 parent 7e2fcd4 commit a442222

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ $repositories | ForEach-Object {
128128
}
129129

130130
$sdkVersion = (cmake -P .\packages\pico-setup-windows\pico-sdk-version.cmake -N | Select-String -Pattern 'PICO_SDK_VERSION_STRING=(.*)$').Matches.Groups[1].Value
131+
$sdkVersion -match $versionRegEx
132+
$sdkVersionClean = $Matches[0]
131133
$product = "Raspberry Pi Pico SDK v$sdkVersion"
132134
$productDir = "Raspberry Pi\Pico SDK v$sdkVersion"
133135
$company = "Raspberry Pi Ltd"
@@ -255,10 +257,11 @@ VIAddVersionKey "FileDescription" "`${TITLE}"
255257
VIAddVersionKey "InternalName" "$basename"
256258
VIAddVersionKey "ProductName" "`${TITLE}"
257259
VIAddVersionKey "FileVersion" "$version"
260+
VIAddVersionKey "ProductVersion" "$sdkVersion"
258261
VIAddVersionKey "LegalCopyright" "$company"
259262
VIAddVersionKey "CompanyName" "$company"
260263
VIFileVersion $version.0
261-
VIProductVersion $version.0
264+
VIProductVersion $sdkVersion.0
262265
263266
; Since we're packaging up a bunch of installers, the "Space required" shown is inaccurate
264267
SpaceTexts "none"

0 commit comments

Comments
 (0)