mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-27 13:50:02 +03:00
Update LDC download url to use new format.
This commit is contained in:
parent
e29963a13d
commit
1a3d0a0828
1 changed files with 7 additions and 7 deletions
14
appveyor.yml
14
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,10 +58,10 @@ 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";
|
||||||
|
@ -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…
Add table
Add a link
Reference in a new issue