This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
unity3d_minimal.verb
72 lines (62 loc) · 2.92 KB
/
unity3d_minimal.verb
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Filename: unity3d_minimal.verb
# Please don't change the filename otherwise the script won't work.
#
# This script is almost the same as unity3d.verb, but tries to install as
# little as possible, relying on system libraries and fonts.
#
# Copyright (c) 2014-2015 The Unity Wine Support Team
# <https://github.com/Unity3D-Wine-Support/Unity3D-on-Wine/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Usage: winetricks [options] [path to verb]
# Example: winetricks "./unity3d_minimal.verb"
#
w_metadata unity3d_minimal apps \
title="Unity 3D" \
publisher="Unity Technologies" \
year="2015" \
media="download" \
file1="UnityDownloadAssistant-5.3.2f1.exe" \
installed_exe1="$W_PROGRAMS_WIN/Unity/Editor/Unity.exe"
load_unity3d_minimal () {
# Download and run the installer
# 4.6.2: http://netstorage.unity3d.com/unity/UnitySetup-4.6.2.exe 998ee6e843461e2fb9e89c2dccd0721b7b2101b7
# 5.0.1: http://netstorage.unity3d.com/unity/5a2e8fe35a68/UnityDownloadAssistant.exe f9ac43b9455274065c2ea8e447a52509227fe784
# 5.0.2: http://netstorage.unity3d.com/unity/0b02744d4013/UnityDownloadAssistant-5.0.2f1.exe 99380b88f2f4c68ca0d8eb3ddfd87a754255e839
# 5.2.2: http://netstorage.unity3d.com/unity/3757309da7e7/UnityDownloadAssistant-5.2.2f1.exe 5d0a84d3863235cc37e7cd260da321171d4a968f
w_download http://netstorage.unity3d.com/unity/e87ab445ead0/UnityDownloadAssistant-5.3.2f1.exe 6e88044a6a1048d5a0c3b27bab521449e6080c79
cd "$W_CACHE/$W_PACKAGE"
w_warn "Now running the Unity installation. As Unity is very big, this can take more than 20 minutes. Please be patient."
# Run the installer
"$WINE" UnityDownloadAssistant-5.3.2f1.exe
# Install IE 8 to fix the creating project bug
if w_workaround_wine_bug 26272 "Installing IE 8 to fix project creation bug" 1.7.34,
then
w_call ie8
fi
# Fix license bug (if it doesn't work, replace "reg" with "reg.exe")
if w_workaround_wine_bug 36964 "Creating a ProductId registry key" 1.7.34,
then
"$WINE" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v ProductId /t REG_SZ /d 12345-oem-0000001-54321
fi
# Fix bug after pressing the play button
if w_workaround_wine_bug 22896 "Creating FOLDERID_LocalAppDataLow" 1.7.24,
then
mkdir -p $WINEPREFIX/drive_c/users/$USER/AppData/LocalLow
fi
# End
w_declare_exe "$W_PROGRAMS_WIN/Unity/Editor" "Unity.exe"
}