forked from tdymel/TCPPClientDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClientCreator.sh
49 lines (40 loc) · 1.37 KB
/
ClientCreator.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
echo "Starting..."
mkdir ClientCreator
cd ClientCreator
echo "Downloading dependencies..."
wget https://raw.githubusercontent.com/Geigerkind/TCPPClientDownloader/master/ClientDownloader.sh
wget https://github.com/Geigerkind/TCPPClientDownloader/raw/master/WoWRegeneration.exe
wget https://github.com/Geigerkind/TCPPClientDownloader/raw/master/connection_patcher
wget https://github.com/Geigerkind/TCPPClientDownloader/raw/master/WTF.zip
unzip WTF.zip
rm WTF.zip
echo "Downloading client..."
bash ClientDownloader.sh
rm ClientDownloader.sh
mv connection_patcher wow434
mv WoWRegeneration.exe wow434
mv WTF wow434
cd wow434
wine WoWRegeneration.exe
mv WoW-15595/Data .
rm -rf WoW-15595
rm WoWRegeneration.exe
echo "Patching clients..."
chmod +x ./connection_patcher
./connection_patcher Wow.exe
./connection_patcher Wow-64.exe
mv Wow_Patched.exe Wow.exe
mv Battle.net_Patched.dll Battle.net.dll
mv Wow-64_Patched.exe Wow-64.exe
mv Battle.net-64_Patched.dll Battle.net-64.dll
mkdir -p ~/.wine/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/
cp -rf AuthModules/* ~/.wine/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/
cp -rf AuthModules_64/* ~/.wine/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/
rm -rf AuthModules
rm -rf AuthModules_64
rm connection_patcher
echo "Cleaning up..."
cd ../../
mv ClientCreator/wow434 .
rm -r ClientCreator
echo "Done!"