LoginSignup
12
11

More than 5 years have passed since last update.

Unity上でUnityする(14.04LTS)

Posted at

Screenshot from 2014-04-21 22:41:37.png

Damian-LinuxFan「Script POL repair」をちょろっと修正して動いた。

unity.pol
#!/bin/bash

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_Init

POL_SetupWindow_presentation "Unity 3D" "Unity" "http://www.unity3d.com/" "Unity3D"

#create prefix
export WINEARCH="win32"
POL_Wine_SelectPrefix "Unity3D"
POL_Wine_PrefixCreate "1.7.17"

#setup prefix
POL_Wine_InstallFonts
#POL_Call POL_Install_directx9
POL_Call POL_Install_dotnet20
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 wer
Set_OS  "winxp"

#Setting mono forcing in MonoDevelop
POL_Wine_OverrideDLL "native" "mscore"
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
#rm $regfile

POL_SetupWindow_browse "Please select the location of the Unity3D setup executable" "Unity Setup Executable"
UNITYLOC=$APP_ANSWER
POL_Wine $UNITYLOC
POL_Shortcut "Unity.exe" "Unity 3D"
POL_SetupWindow_Close

exit

修正点は、wineとIEの版を上げたとこ。全く本質的ではない。

基本的な事項

  • Unity上でUnityと言ってみたかった
  • PlayOnLinuxで

迷宮から逃れる方法

  • 自分でwineを入れない
  • 怪しくなったらホームの.PlayOnLinuxを捨てて、やり直す

所感

PlayOnLinux、いいなー。でも深みにハマったら大変なので、これ以上立ち入らないようにしたい。でも、スクリプトで環境構築できるのが、インフラ方面で今風なので、Windows用のサーバソフトをデプロイしてとか、技術をムダ使いするにはモッテコイかも知れない。

12
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11