File tree 3 files changed +32
-14
lines changed
website/content/public/downloads/winesetup
3 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 3
3
# so that mgfxc can be run on Linux / macOS systems.
4
4
5
5
# check dependencies
6
- if ! type " wine64" > /dev/null 2>&1
6
+ WINEEXECUTABLE=" wine64"
7
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
7
8
then
8
- echo " wine64 not found"
9
+ WINEEXECUTABLE=" wine"
10
+ fi
11
+
12
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
13
+ then
14
+ echo " $WINEEXECUTABLE not found"
9
15
exit 1
10
16
fi
11
17
18
24
# init wine stuff
19
25
export WINEARCH=win64
20
26
export WINEPREFIX=$HOME /.winemonogame
21
- wine64 wineboot
27
+ eval " $WINEEXECUTABLE wineboot"
22
28
23
29
TEMP_DIR=" ${TMPDIR:-/ tmp} "
24
30
SCRIPT_DIR=" $TEMP_DIR /winemg2"
@@ -32,7 +38,7 @@ REGEDIT4
32
38
_EOF_
33
39
34
40
pushd $SCRIPT_DIR
35
- wine64 regedit crashdialog.reg
41
+ eval " $WINEEXECUTABLE regedit crashdialog.reg"
36
42
popd
37
43
38
44
# get dotnet
Original file line number Diff line number Diff line change 3
3
# so that mgfxc can be run on Linux / macOS systems.
4
4
5
5
# check dependencies
6
- if ! type " wine64" > /dev/null 2>&1
6
+ WINEEXECUTABLE=" wine64"
7
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
7
8
then
8
- echo " wine64 not found"
9
+ WINEEXECUTABLE=" wine"
10
+ fi
11
+
12
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
13
+ then
14
+ echo " $WINEEXECUTABLE not found"
9
15
exit 1
10
16
fi
11
17
17
23
18
24
# wine 8 is the minimum requirement for dotnet 8
19
25
# wine --version will output "wine-#.# (Distro #.#.#)" or "wine-#.#"
20
- WINE_VERSION=$( wine64 --version 2>&1 | grep -o ' wine-..' | sed ' s/wine-//' | sed ' s/\.//' )
26
+ WINE_VERSION=$( $WINEEXECUTABLE --version 2>&1 | grep -o ' wine-..' | sed ' s/wine-//' | sed ' s/\.//' )
21
27
if (( $WINE_VERSION < 8 )) ; then
22
28
echo " Wine version $WINE_VERSION is below the minimum required version (8.0)."
23
29
exit 1
26
32
# init wine stuff
27
33
export WINEARCH=win64
28
34
export WINEPREFIX=$HOME /.winemonogame
29
- wine64 wineboot
35
+ eval " $WINEEXECUTABLE wineboot"
30
36
31
37
TEMP_DIR=" ${TMPDIR:-/ tmp} "
32
38
SCRIPT_DIR=" $TEMP_DIR /winemg2"
@@ -40,7 +46,7 @@ REGEDIT4
40
46
_EOF_
41
47
42
48
pushd $SCRIPT_DIR
43
- wine64 regedit crashdialog.reg
49
+ eval " $WINEEXECUTABLE regedit crashdialog.reg"
44
50
popd
45
51
46
52
# get dotnet
Original file line number Diff line number Diff line change 3
3
# so that mgfxc can be run on Linux / macOS systems.
4
4
5
5
# check dependencies
6
- if ! type " wine64" > /dev/null 2>&1
6
+ WINEEXECUTABLE=" wine64"
7
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
7
8
then
8
- echo " wine64 not found"
9
+ WINEEXECUTABLE=" wine"
10
+ fi
11
+
12
+ if ! type " $WINEEXECUTABLE " > /dev/null 2>&1
13
+ then
14
+ echo " $WINEEXECUTABLE not found"
9
15
exit 1
10
16
fi
11
17
17
23
18
24
# wine 8 is the minimum requirement for dotnet 8
19
25
# wine --version will output "wine-#.# (Distro #.#.#)" or "wine-#.#"
20
- WINE_VERSION=$( wine64 --version 2>&1 | grep -o ' wine-..' | sed ' s/wine-//' | sed ' s/\.//' )
26
+ WINE_VERSION=$( $WINEEXECUTABLE --version 2>&1 | grep -o ' wine-..' | sed ' s/wine-//' | sed ' s/\.//' )
21
27
if (( $WINE_VERSION < 8 )) ; then
22
28
echo " Wine version $WINE_VERSION is below the minimum required version (8.0)."
23
29
exit 1
26
32
# init wine stuff
27
33
export WINEARCH=win64
28
34
export WINEPREFIX=$HOME /.winemonogame
29
- wine64 wineboot
35
+ eval " $WINEEXECUTABLE wineboot"
30
36
31
37
TEMP_DIR=" ${TMPDIR:-/ tmp} "
32
38
SCRIPT_DIR=" $TEMP_DIR /winemg2"
@@ -40,7 +46,7 @@ REGEDIT4
40
46
_EOF_
41
47
42
48
pushd $SCRIPT_DIR
43
- wine64 regedit crashdialog.reg
49
+ eval " $WINEEXECUTABLE regedit crashdialog.reg"
44
50
popd
45
51
46
52
# get dotnet
You can’t perform that action at this time.
0 commit comments