@@ -3,6 +3,7 @@ version: '{build}'
33environment:
44 # Keep the path as short as possible, just in case.
55 STACK_ROOT: c:\s
6+ STACK_VER: 1.2.0
67 RELEASE_USER: purescript
78 RELEASE_REPO: purescript
89cache:
@@ -15,7 +16,9 @@ install:
1516- ps: |
1617 New-Item -ItemType Directory -Force -Path C:\tools
1718 $env:Path += ";C:\tools"
18− (New-Object Net.WebClient).DownloadFile('https://www.stackage.org/stack/windows-x86_64', 'c:\tools\stack.zip')
19+ $stackRelease = "stack-$env:STACK_VER-windows-x86_64"
20+ $downloadUrl = "https://github.com/commercialhaskell/stack/releases/download/v$env:STACK_VER/$stackRelease.zip"
21+ (New-Object Net.WebClient).DownloadFile($downloadUrl, 'c:\tools\stack.zip')
1922 pushd c:\tools
2023 7z x c:\tools\stack.zip stack.exe
2124 popd