-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-win32.sh
38 lines (26 loc) · 887 Bytes
/
build-win32.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
#!/bin/bash
set -e
cmake -S liblauncher -B liblauncher/build32 -A Win32
cmake --build liblauncher/build32 --config Release
pushd native
cmake -B build-x86 -A Win32
cmake --build build-x86 --config Release
popd
source .jdk-versions.sh
rm -rf build/win-x86
mkdir -p build/win-x86
if ! [ -f win32_jre.zip ] ; then
curl -Lo win32_jre.zip $WIN32_LINK
fi
echo "$WIN32_CHKSUM win32_jre.zip" | sha256sum -c
cp native/build-x86/src/Release/RuneLite.exe build/win-x86/
cp target/RuneLite.jar build/win-x86/
cp packr/win-x86-config.json build/win-x86/config.json
cp liblauncher/build32/Release/launcher_x86.dll build/win-x86/
unzip win32_jre.zip
mv jdk-$WIN32_VERSION-jre build/win-x86/jre
echo RuneLite.exe 32bit sha256sum
sha256sum build/win-x86/RuneLite.exe
dumpbin //HEADERS build/win-x86/RuneLite.exe
# We use the filtered iss file
iscc target/filtered-resources/runelite32.iss