-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-win64.sh
38 lines (26 loc) · 883 Bytes
/
build-win64.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/build64 -A x64
cmake --build liblauncher/build64 --config Release
pushd native
cmake -B build-x64 -A x64
cmake --build build-x64 --config Release
popd
source .jdk-versions.sh
rm -rf build/win-x64
mkdir -p build/win-x64
if ! [ -f win64_jre.zip ] ; then
curl -Lo win64_jre.zip $WIN64_LINK
fi
echo "$WIN64_CHKSUM win64_jre.zip" | sha256sum -c
cp native/build-x64/src/Release/RuneLite.exe build/win-x64/
cp target/RuneLite.jar build/win-x64/
cp packr/win-x64-config.json build/win-x64/config.json
cp liblauncher/build64/Release/launcher_amd64.dll build/win-x64/
unzip win64_jre.zip
mv jdk-$WIN64_VERSION-jre build/win-x64/jre
echo RuneLite.exe 64bit sha256sum
sha256sum build/win-x64/RuneLite.exe
dumpbin //HEADERS build/win-x64/RuneLite.exe
# We use the filtered iss file
iscc target/filtered-resources/runelite.iss