Use openrct.net mirror for the files

This commit is contained in:
Michał Janiszewski 2015-09-28 22:42:28 +02:00
parent da2f2827d1
commit 11bbf7c19e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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