-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-mf-64.sh
executable file
·56 lines (44 loc) · 2.22 KB
/
install-mf-64.sh
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
#!/bin/sh
check_env() {
[ -z "$1" ] && echo "$2 is not set" && exit 1
}
check_sanity() {
[ ! -d "$1/$2" ] && echo "$1 isn't a valid path" && exit 1
}
check_env "$WINEPREFIX" WINEPREFIX
check_sanity "$WINEPREFIX" drive_c
# User instructions:
# Set PROTON to a Heroic Game Launcher Proton folder just like WINEPREFIX, pass -heroicproton to script.
# Heroic now includes a "Wine Manager" for managing wine versions. Wine versions installed using the
# "Wine Manager" have a slightly different directory structure different than standard proton wine versions.
if [ "$1" = "-heroicproton" ]; then
check_env "$PROTON" PROTON
check_sanity "$PROTON" files/bin
export PATH="$PROTON/files/bin:$PATH"
export WINESERVER="$PROTON/files/bin/wineserver"
export WINELOADER="$PROTON/files/bin/wine"
export WINEDLLPATH="$PROTON/files/lib/wine:$PROTON/files/lib64/wine"
fi
# User instructions:
# Set PROTON to a Proton folder just like WINEPREFIX, pass -proton to script
if [ "$1" = "-proton" ]; then
check_env "$PROTON" PROTON
check_sanity "$PROTON" dist/bin
export PATH="$PROTON/dist/bin:$PATH"
export WINESERVER="$PROTON/dist/bin/wineserver"
export WINELOADER="$PROTON/dist/bin/wine"
export WINEDLLPATH="$PROTON/dist/lib/wine:$PROTON/dist/lib64/wine"
fi
set -e
scriptdir=$(dirname "$0")
cd "$scriptdir"
if [ ! -f "windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe" ]; then
wget "http://download.windowsupdate.com/msdownload/update/software/svpk/2011/02/windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe"
fi
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe mediafoundation
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe mf_
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe mfreadwrite
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe wmadmod
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe wmvdecod
python2 installcab.py windows6.1-kb976932-x64_74865ef2562006e51d7f9333b4a8d45b7a749dab.exe wmadmod
echo -e "\nNow you need to get mfplat.dll in your application directory"