From 1a3d0a08288968640d56b1762ef6e6edcd76abf4 Mon Sep 17 00:00:00 2001 From: skl131313 Date: Wed, 17 Jan 2018 21:18:11 -0500 Subject: [PATCH 1/2] Update LDC download url to use new format. --- appveyor.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2be4e70..4a17926 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,9 +16,9 @@ environment: #- DC: ldc #DVersion: beta #arch: x86 - #- DC: ldc - #DVersion: beta - #arch: x64 + - DC: ldc + DVersion: beta + arch: x64 #- DC: ldc #DVersion: stable #arch: x86 @@ -58,10 +58,10 @@ install: $version = $env:DVersion; if($version -eq "stable") { $latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST").toString().replace("`n","").replace("`r",""); - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-win64-msvc.zip"; + $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-windows-x64.7z"; }elseif($version -eq "beta") { $latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST_BETA").toString().replace("`n","").replace("`r",""); - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-win64-msvc.zip"; + $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-windows-x64.7z"; } else { $latest = $version; $url = "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip"; @@ -87,10 +87,10 @@ install: echo "downloading ..."; $url = ResolveLatestLDC; echo $url; - Invoke-WebRequest $url -OutFile "c:\ldc.zip"; + Invoke-WebRequest $url -OutFile "c:\ldc.7z"; echo "finished."; pushd c:\\; - 7z x ldc.zip > $null; + 7z x ldc.7z > $null; popd; } } From 221953518c1d3d944933d0032a729507877a5f42 Mon Sep 17 00:00:00 2001 From: skl131313 Date: Wed, 17 Jan 2018 22:01:18 -0500 Subject: [PATCH 2/2] Fix environment path to LDC. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 4a17926..1efddc5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -66,7 +66,7 @@ install: $latest = $version; $url = "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip"; } - $env:PATH += ";C:\ldc2-$($latest)-win64-msvc\bin"; + $env:PATH += ";C:\ldc2-$($latest)-windows-x64\bin"; $env:DC = "ldc2"; return $url; }