diff --git a/appveyor.yml b/appveyor.yml index b7ba194..143d03a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,7 +29,7 @@ DVersion: stable arch: x64 - DC: ldc - DVersion: 1.2.0 + DVersion: 1.7.0 arch: x64 skip_tags: false @@ -59,17 +59,18 @@ - ps: function ResolveLatestLDC { $version = $env:DVersion; + $arch = $env:arch; 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-$($arch).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-$($arch).7z"; } else { $latest = $version; - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip"; + $url = "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-windows-$($arch).7z"; } - $env:PATH += ";C:\ldc2-$($latest)-win64-msvc\bin"; + $env:PATH += ";C:\ldc2-$($latest)-windows-$($arch)\bin"; $env:DC = "ldc2"; return $url; }