2015-05-30 22:11:06 +01:00
|
|
|
$path = Split-Path $Script:MyInvocation.MyCommand.Path
|
2015-07-03 06:53:27 +01:00
|
|
|
$zip = $path+'\orctlibs.zip'
|
2015-05-30 22:11:06 +01:00
|
|
|
$libs = $path+'\lib'
|
2015-07-03 18:07:29 +01:00
|
|
|
$libsTest = Test-Path $libs
|
2015-07-03 06:53:27 +01:00
|
|
|
if (!$libsTest) {
|
|
|
|
mkdir $libs
|
|
|
|
Invoke-WebRequest https://download.openrct2.website/dev/lib/vs -OutFile $path\orctlibs.zip
|
2015-05-30 22:11:06 +01:00
|
|
|
[System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
|
|
|
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $libs)
|
2015-07-03 06:53:27 +01:00
|
|
|
rm $path\orctlibs.zip -Force -ErrorAction SilentlyContinue
|
2015-05-30 22:11:06 +01:00
|
|
|
}
|