-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
prepare_release.sh
59 lines (44 loc) · 1.73 KB
/
prepare_release.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
57
58
59
#!/bin/bash
rm -Rf ./_PREPARED_RELEASE
rm -Rf ./_PREPARED_RELEASE_TEST
mkdir -p ./_PREPARED_RELEASE
cp -r ./_RELEASE/Assets ./_PREPARED_RELEASE
cp -r ./_RELEASE/ConfigOverrides ./_PREPARED_RELEASE
mkdir -p ./_PREPARED_RELEASE/Packs
cp -r ./_RELEASE/Packs/base ./_PREPARED_RELEASE/Packs
cp -r ./_RELEASE/Packs/tutorial ./_PREPARED_RELEASE/Packs
cp -r ./_RELEASE/Packs/cube ./_PREPARED_RELEASE/Packs
cp -r ./_RELEASE/Packs/hypercube ./_PREPARED_RELEASE/Packs
cp -r ./_RELEASE/Packs/orthoplex ./_PREPARED_RELEASE/Packs
mkdir -p ./_PREPARED_RELEASE/Profiles
cp ./_RELEASE/SSVOpenHexagon.exe ./_PREPARED_RELEASE
cp ./_RELEASE/SSVOpenHexagon-Console.exe ./_PREPARED_RELEASE
cp ./_RELEASE/libzlib.dll ./_PREPARED_RELEASE
cp ./_RELEASE/libopenal-1.dll ./_PREPARED_RELEASE
cp ./_RELEASE/steam_api64.dll ./_PREPARED_RELEASE
cp ./_RELEASE/discord_game_sdk.dll ./_PREPARED_RELEASE
cp ./_RELEASE/sdkencryptedappticket64.dll ./_PREPARED_RELEASE
cp ./_RELEASE/libstdc++-6.dll ./_PREPARED_RELEASE
cp ./_RELEASE/libgcc_s_seh-1.dll ./_PREPARED_RELEASE
cp ./_RELEASE/libwinpthread-1.dll ./_PREPARED_RELEASE
cp ./_RELEASE/libssp-0.dll ./_PREPARED_RELEASE
cp ./_RELEASE/steam_appid.txt ./_PREPARED_RELEASE
cp ./_RELEASE/windowed.bat ./_PREPARED_RELEASE
cp ./_RELEASE/windowed_no3D.bat ./_PREPARED_RELEASE
cp ./_RELEASE/fullscreen.bat ./_PREPARED_RELEASE
cp ./_RELEASE/fullscreen_no3D.bat ./_PREPARED_RELEASE
cp ./_RELEASE/highfps.bat ./_PREPARED_RELEASE
cp ./_RELEASE/noaudio.bat ./_PREPARED_RELEASE
cp ./_RELEASE/OHWorkshopUploader.exe ./_PREPARED_RELEASE
cd ./_PREPARED_RELEASE
echo "PACKING WITH UPX"
for x in ./*.dll; do
upx -9 $x &
done
for x in ./*.exe; do
upx -9 $x &
done
wait
echo "DONE PACKING WITH UPX"
cd ..
cp -r ./_PREPARED_RELEASE ./_PREPARED_RELEASE_TEST