Merge pull request #547 from skl131313/appveyor
Update LDC download url to use new format.
This commit is contained in:
commit
1497416c7e
16
appveyor.yml
16
appveyor.yml
|
@ -16,9 +16,9 @@ environment:
|
||||||
#- DC: ldc
|
#- DC: ldc
|
||||||
#DVersion: beta
|
#DVersion: beta
|
||||||
#arch: x86
|
#arch: x86
|
||||||
#- DC: ldc
|
- DC: ldc
|
||||||
#DVersion: beta
|
DVersion: beta
|
||||||
#arch: x64
|
arch: x64
|
||||||
#- DC: ldc
|
#- DC: ldc
|
||||||
#DVersion: stable
|
#DVersion: stable
|
||||||
#arch: x86
|
#arch: x86
|
||||||
|
@ -58,15 +58,15 @@ install:
|
||||||
$version = $env:DVersion;
|
$version = $env:DVersion;
|
||||||
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-x64.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-x64.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)-win64-msvc.zip";
|
||||||
}
|
}
|
||||||
$env:PATH += ";C:\ldc2-$($latest)-win64-msvc\bin";
|
$env:PATH += ";C:\ldc2-$($latest)-windows-x64\bin";
|
||||||
$env:DC = "ldc2";
|
$env:DC = "ldc2";
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
@ -87,10 +87,10 @@ install:
|
||||||
echo "downloading ...";
|
echo "downloading ...";
|
||||||
$url = ResolveLatestLDC;
|
$url = ResolveLatestLDC;
|
||||||
echo $url;
|
echo $url;
|
||||||
Invoke-WebRequest $url -OutFile "c:\ldc.zip";
|
Invoke-WebRequest $url -OutFile "c:\ldc.7z";
|
||||||
echo "finished.";
|
echo "finished.";
|
||||||
pushd c:\\;
|
pushd c:\\;
|
||||||
7z x ldc.zip > $null;
|
7z x ldc.7z > $null;
|
||||||
popd;
|
popd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue