Skip to content

Commit

Permalink
ci: fix windows builds due to choco
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Nov 8, 2023
1 parent df30d74 commit 5ce452e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/choco-install.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$ErrorActionPreference = "Stop"

function Save-ChocoPackage {
param (
$PackageName
Expand All @@ -22,7 +24,7 @@ New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorA
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1

# Install nodejs v20.5.1 (will use cache if exists)
$nodejs = "nodejs.install"
$nodejs = "nodejs"
choco install "$nodejs" --version="20.5.1" --require-checksums -y
# Internalise nodejs to cache if doesn't exist
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
Expand Down

0 comments on commit 5ce452e

Please sign in to comment.