Skip to content

Commit 5d1d2dd

Browse files
committed
build: tweak the Windows build for clean builds
Add a directory creation path prior to downloading. In the case that the build tree did not exist, we would fail to fetch the content. This allows us to build on a fresh setup.
1 parent f08f86c commit 5d1d2dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ function Fetch-Dependencies {
413413

414414
if (-not (Test-Path $BinaryCache\WiX-$WiXVersion.zip)) {
415415
Write-Output "WiX not found. Downloading from nuget.org ..."
416+
New-Item -ItemType Directory -ErrorAction Ignore $BinaryCache | Out-Null
416417
if ($ToBatch) {
417418
Write-Output "curl.exe -sL $WiXURL -o $BinaryCache\WiX-$WiXVersion.zip"
418419
} else {

0 commit comments

Comments
 (0)