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
/
Copy pathunity.pol
65 lines (53 loc) · 2.01 KB
/
unity.pol
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
#!/bin/bash
#
# Filename: unity.pol
#
# 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/>.
#
# For use with PlayOnLinux
# <https://playonlinux.com/>
#
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Unity 3D"
PREFIX="Unity3D"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Unity Technologies" "http://unity3d.com/" "The Unity Wine Support Team" "$PREFIX"
# Create the prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
# Install the fonts
POL_Wine_InstallFonts
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
POL_System_TmpCreate "$PREFIX"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
cd "$POL_System_TmpDir"
POL_Download "http://netstorage.unity3d.com/unity/0b02744d4013/UnityDownloadAssistant-5.0.2f1.exe" "dfdb5394ee22260da4aea09e5f233314"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/UnityDownloadAssistant-5.0.2f1.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
fi
POL_System_TmpDelete
POL_Shortcut "Unity.exe" "$TITLE"
POL_SetupWindow_Close
exit