Skip to content

Commit aa37b6e

Browse files
committed
fix justfile for windows
1 parent 58f1c85 commit aa37b6e

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

justfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,19 @@ _ensure_dirs:
3939

4040
[windows]
4141
_ensure_dirs:
42-
New-Item -ItemType Directory runtimes/linux-x64/native > $null
43-
New-Item -ItemType Directory runtimes/win-x64/native > $null
44-
New-Item -ItemType Directory runtimes/osx-x64/native > $null
45-
New-Item -ItemType Directory runtimes/osx-arm64/native > $null
46-
New-Item -ItemType Directory build > $null
42+
New-Item -ItemType Directory -Force runtimes/linux-x64/native > $null
43+
New-Item -ItemType Directory -Force runtimes/win-x64/native > $null
44+
New-Item -ItemType Directory -Force runtimes/osx-x64/native > $null
45+
New-Item -ItemType Directory -Force runtimes/osx-arm64/native > $null
46+
New-Item -ItemType Directory -Force build > $null
4747

4848
# Downloads the precompiled binaries for OIDN from GitHub
4949
[windows]
5050
_download:
51-
if (-not(Test-Path -Path "prebuilt" -PathType Container))
52-
{
53-
Invoke-WebRequest -Uri "https://github.com/pgrit/RenderLibs/releases/download/v{{renderLibVersion}}/RenderLibs-v{{renderLibVersion}}.zip" -OutFile "prebuilt.zip"
54-
Expand-Archive "prebuilt.zip" -DestinationPath ./prebuilt
55-
rm prebuilt.zip
51+
if (-not(Test-Path -Path "prebuilt" -PathType Container)) { \
52+
Invoke-WebRequest -Uri "https://github.com/pgrit/RenderLibs/releases/download/v{{renderLibVersion}}/RenderLibs-v{{renderLibVersion}}.zip" -OutFile "prebuilt.zip" && \
53+
Expand-Archive "prebuilt.zip" -DestinationPath ./prebuilt && \
54+
rm prebuilt.zip \
5655
}
5756

5857
# Downloads the precompiled binaries for OIDN from GitHub

0 commit comments

Comments
 (0)