-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathget_externals.ps1
39 lines (34 loc) · 1.37 KB
/
get_externals.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$pver = & py -3.6 -V
if (-not $?) {
Write-Host "Please install Python 3.6 64-bit (including the launcher)"
Write-Host " ** https://www.python.org/ftp/python/3.6.6/python-3.6.6-amd64-webinstall.exe"
Write-Host ""
Write-Host "After installing, rerun this script."
exit 1
}
$tmp = mkdir -Force tmp
Write-Host "Getting ogre3d SDK (120MB) - https://www.ogre3d.org/download/sdk"
if (Test-Path "ogre") {
del -r -fo ogre
}
if (-not (Test-Path "$tmp\ogre.zip")) {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iwr "https://bintray.com/ogrecave/ogre/download_file?file_path=ogre-sdk-1.11.1-vc15-x64.zip" -OutFile "$tmp\ogre.zip"
}
py -3.6 -m zipfile -e "$tmp\ogre.zip" ogre
Write-Host "Getting SDL2 dev libraries - https://www.libsdl.org/download-2.0.php"
if (Test-Path "sdl") {
del -r -fo sdl
}
if (-not (Test-Path "$tmp\sdl2.zip")) {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iwr "http://libsdl.org/release/SDL2-devel-2.0.8-VC.zip" -OutFile "$tmp\sdl2.zip"
}
py -3.6 -m zipfile -e "$tmp\sdl2.zip" sdl
Write-Host ""
if (Test-Path "$env:SystemRoot\SysWOW64\d3dx9_43.dll") {
Write-Host "DirectX redistributable is already installed"
} else {
Write-Host "Please install the DirectX redistributable"
Write-Host " ** https://www.microsoft.com/en-us/download/details.aspx?id=35"
}