Last active
August 29, 2015 14:00
-
-
Save erbridge/11159912 to your computer and use it in GitHub Desktop.
PlayOnLinux Script to install Unity3d.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Date : (2014-03-07 10-21) | |
# Last revision : (2014-03-14 10-35) | |
# Wine version used : 1.7.16 | |
# Distribution used to test : Ubuntu 13.10 | |
# Authors : waneck-six, Damian-LinuxFan, Tomza (pogtoma@gmail.com) | |
# Contributors: Goran Grncaroski (running MonoDevelop), other people (testing solutions) | |
# Script licence : GPL v.2 | |
# Only For : http://www.playonlinux.com | |
# Depend : | |
# Known Issues : Asset Store window does not work at all | |
[ "$PLAYONLINUX" = "" ] && exit 0 | |
source "$PLAYONLINUX/lib/sources" | |
TITLE="Unity 3D" | |
PREFIX="Unity3D" | |
WINE_VERSION="1.7.16" | |
POL_SetupWindow_Init | |
POL_Debug_Init | |
POL_SetupWindow_presentation "$TITLE" "Unity" "http://www.unity3d.com/" "waneck-six, Damian-LinuxFan, Tomza" "$PREFIX" | |
#create prefix | |
export WINEARCH="win32" | |
POL_Wine_SelectPrefix "$PREFIX" | |
POL_Wine_PrefixCreate "$WINE_VERSION" | |
#setup prefix | |
POL_Wine_InstallFonts | |
POL_Call POL_Install_directx9 | |
POL_Call POL_Install_dotnet20 | |
POL_Call POL_Install_dotnet35 | |
POL_Call POL_Install_dotnet40 | |
POL_Call POL_Install_tahoma | |
POL_Call POL_Install_vcrun2008 | |
POL_Call POL_Install_vcrun2010 | |
POL_Call POL_Install_mono210 | |
POL_Call POL_Install_d3dx9_36 | |
POL_Call POL_Install_d3dcompiler_43 | |
POL_Call POL_Install_dxdiag | |
POL_Call POL_Install_dxfullsetup | |
POL_Call POL_Install_physx | |
POL_Call POL_Install_corefonts | |
POL_Call POL_Install_msxml6 | |
POL_Call POL_Install_wininet | |
POL_Call POL_Install_ie8 | |
#Setting OS ver | |
Set_OS "winxp" "sp3" | |
#Setting mono forcing in MonoDevelop | |
POL_Wine_OverrideDLL "native, builtin" "mscore" | |
POL_Wine_OverrideDLL "native, builtin" "dnsapi" | |
POL_Wine_OverrideDLL "" "mscorsvw.exe" | |
mkdir -p $WINEPREFIX/drive_c/users/$USER/AppData/LocalLow | |
#registry | |
regfile=$(mktemp --suffix=.REG) | |
echo "REGEDIT4" > $regfile | |
echo "" >> $regfile | |
echo "[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]" >> $regfile | |
echo '"ProductId"="12345-oem-0000001-54321"' >> $regfile | |
POL_Wine regedit $regfile | |
POL_SetupWindow_browse "Please select the location of the Unity3D setup executable" "$TITLE" | |
UNITYLOC=$APP_ANSWER | |
POL_Wine $UNITYLOC | |
POL_Shortcut "Unity.exe" "$TITLE" | |
POL_SetupWindow_Close | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment