Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,27 @@ if ($null -ne $packageType) {
$BuildToolsPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC"

& $rustup default stable

## Test if Node is installed
## Skipping upgrade as users may have a specific version they want to use
if (!(Get-Command 'node' -ErrorAction Ignore)) {
Write-Verbose -Verbose "Node.js not found, installing..."
if (!$IsWindows) {
if (Get-Command 'brew' -ErrorAction Ignore) {
brew install node@24
} else {
Write-Warning "Homebrew not found, please install Node.js manually"
}
}
else {
if (Get-Command 'winget' -ErrorAction Ignore) {
Write-Verbose -Verbose "Using winget to install Node.js"
winget install OpenJS.NodeJS --accept-source-agreements --accept-package-agreements --source winget --silent
} else {
Write-Warning "winget not found, please install Node.js manually"
}
}
}
}

if (!$SkipBuild -and !$SkipLinkCheck -and $IsWindows -and !(Get-Command 'link.exe' -ErrorAction Ignore)) {
Expand Down
Loading