mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use openrct.net mirror for the files
This commit is contained in:
parent
da2f2827d1
commit
11bbf7c19e
|
@ -4,6 +4,7 @@ SDL2_PV=2.0.3
|
|||
SDL2_TTF_PV=2.0.12
|
||||
|
||||
cachedir=.cache
|
||||
liburl=https://openrct.net/launcher/libs/orctlibs.zip
|
||||
mkdir -p $cachedir
|
||||
|
||||
echo `uname`
|
||||
|
@ -46,7 +47,7 @@ function download_sdl {
|
|||
|
||||
function download_libs {
|
||||
if [[ ! -f $cachedir/orctlibs.zip ]]; then
|
||||
curl https://dl.dropboxusercontent.com/u/1323345/orctlibs.zip -o $cachedir/orctlibs.zip;
|
||||
curl $liburl -o $cachedir/orctlibs.zip;
|
||||
fi
|
||||
if [[ ! -d $cachedir/orctlibs ]]; then
|
||||
mkdir -p $cachedir/orctlibs
|
||||
|
|
|
@ -4,6 +4,7 @@ $path = Split-Path $Script:MyInvocation.MyCommand.Path
|
|||
$zip = $path+'\orctlibs.zip'
|
||||
$libs = $path+'\lib'
|
||||
$libsVFile = $path+'\libversion'
|
||||
$liburl = 'https://openrct.net/launcher/libs/orctlibs_vs.zip'
|
||||
$libsTest = Test-Path $libs
|
||||
|
||||
#libs version test
|
||||
|
@ -23,7 +24,7 @@ if (!$libsTest -or $needsdownload) {
|
|||
rm $libs -Recurse -Force
|
||||
}
|
||||
mkdir $libs
|
||||
Invoke-WebRequest https://dl.dropboxusercontent.com/u/1323345/orctlibs_vs.zip -OutFile $path\orctlibs.zip
|
||||
Invoke-WebRequest $liburl -OutFile $path\orctlibs.zip
|
||||
[System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $libs)
|
||||
rm $path\orctlibs.zip -Force -ErrorAction SilentlyContinue
|
||||
|
|
Loading…
Reference in New Issue