Update AppVeyor LDC links
This commit is contained in:
parent
e4591f5847
commit
8465a4a4b9
|
@ -59,17 +59,18 @@ install:
|
||||||
- ps: function ResolveLatestLDC
|
- ps: function ResolveLatestLDC
|
||||||
{
|
{
|
||||||
$version = $env:DVersion;
|
$version = $env:DVersion;
|
||||||
|
$arch = $env:arch;
|
||||||
if($version -eq "stable") {
|
if($version -eq "stable") {
|
||||||
$latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST").toString().replace("`n","").replace("`r","");
|
$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") {
|
}elseif($version -eq "beta") {
|
||||||
$latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST_BETA").toString().replace("`n","").replace("`r","");
|
$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 {
|
} else {
|
||||||
$latest = $version;
|
$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";
|
$env:DC = "ldc2";
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue