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

Commit 3964bd6

Browse files
committed
Better handling of the SDK version
1 parent 652a657 commit 3964bd6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.ps1

+6-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ mkdirp "bin"
8383
}
8484
}
8585

86-
$sdkVersion = (.\build\cmake\bin\cmake.exe -P .\packages\pico-setup-windows\pico-sdk-version.cmake -N | Select-String -Pattern '([0-9]+\.)+[0-9]+').Matches.Value
87-
$product = "Raspberry Pi Pico SDK $sdkVersion"
88-
8986
$repositories | ForEach-Object {
9087
$repodir = Join-Path 'build' ([IO.Path]::GetFileNameWithoutExtension($_.href))
9188

@@ -109,6 +106,12 @@ $repositories | ForEach-Object {
109106
}
110107
}
111108

109+
$sdkVersion = (.\build\cmake\bin\cmake.exe -P .\packages\pico-setup-windows\pico-sdk-version.cmake -N | Select-String -Pattern 'PICO_SDK_VERSION_STRING=(.*)$').Matches.Groups[1].Value
110+
$product = "Raspberry Pi Pico SDK $sdkVersion"
111+
112+
Write-Host "SDK version: $sdkVersion"
113+
Write-Host "Installer version: $version"
114+
112115
if (-not (Test-Path $MSYS2Path)) {
113116
Write-Host 'Extracting MSYS2'
114117
exec { & .\downloads\msys2.exe -y "-o$(Resolve-Path (Split-Path $MSYS2Path -Parent))" }

0 commit comments

Comments
 (0)