@@ -3,6 +3,7 @@ version: '{build}'
3environment:
3environment:
4 # Keep the path as short as possible, just in case.
4 # Keep the path as short as possible, just in case.
5 STACK_ROOT: c:\s
5 STACK_ROOT: c:\s
6 RELEASE_USER: purescript
7 RELEASE_USER: purescript
7 RELEASE_REPO: purescript
8 RELEASE_REPO: purescript
@@ -15,7 +16,9 @@ install:
16 New-Item -ItemType Directory -Force -Path C:\tools
17 New-Item -ItemType Directory -Force -Path C:\tools
17 $env:Path += ";C:\tools"
18 $env:Path += ";C:\tools"
19+ $stackRelease = "stack-$env:STACK_VER-windows-x86_64"
20+ $downloadUrl = "https://github.com/commercialhaskell/stack/releases/download/v$env:STACK_VER/$stackRelease.zip"
18− (New-Object Net.WebClient).DownloadFile('https://www.stackage.org/stack/windows-x86_64', 'c:\tools\stack.zip')
21+ (New-Object Net.WebClient).DownloadFile($downloadUrl, 'c:\tools\stack.zip')
19 pushd c:\tools
22 pushd c:\tools
20 7z x c:\tools\stack.zip stack.exe
23 7z x c:\tools\stack.zip stack.exe