Skip to content

Commit

Permalink
project: Fix appveyor with older msbuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed May 15, 2022
1 parent 2553853 commit 622c26b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SMP/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ before_build:
}
# Download and install nasm integration
- ps: (New-Object Net.WebClient).DownloadFile('https://github.com/ShiftMediaProject/VSNASM/releases/download/0.8/VSNASM.zip', "$pwd\nasm.zip")
- ps: >-
if ($env:MSVC_VER -gt 14) {
(New-Object Net.WebClient).DownloadFile('https://github.com/ShiftMediaProject/VSNASM/releases/download/0.8/VSNASM.zip', "$pwd\nasm.zip")
} else {
(New-Object Net.WebClient).DownloadFile('https://github.com/ShiftMediaProject/VSNASM/releases/download/0.7/VSNASM.zip', "$pwd\nasm.zip")
}
- ps: Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory("$pwd\nasm.zip", "$pwd\TempNASMUnpack")
- cmd: call ".\TempNASMUnpack\install_script.bat"
# Additional nasm location in order to fix gitlink error
Expand Down

0 comments on commit 622c26b

Please sign in to comment.