2023-06-07 17:57:56 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-06-24 22:47:32 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if ! [ "x$1" = "xdo" ]; then
|
|
|
|
echo "A part of the source code is witheld (game_payload/src/tp6.c) to make abuse more difficult. Please download a binary release"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
shift
|
2023-06-07 17:57:56 +00:00
|
|
|
|
|
|
|
strip="x86_64-w64-mingw32-strip"
|
2023-06-05 21:23:08 +00:00
|
|
|
|
|
|
|
rm -f jadeite.zip
|
|
|
|
rm -rf out
|
|
|
|
|
2023-06-07 17:57:56 +00:00
|
|
|
sh setup.sh --buildtype=release
|
2023-06-25 09:32:19 +00:00
|
|
|
meson compile -C build
|
2023-06-05 21:23:08 +00:00
|
|
|
|
|
|
|
mkdir out
|
|
|
|
|
|
|
|
cp ./build/injector/jadeite.exe ./out
|
2023-06-25 09:32:19 +00:00
|
|
|
cp ./build/injector/launcher_payload.dll ./out
|
2023-06-05 21:23:08 +00:00
|
|
|
cp ./build/game_payload/game_payload.dll ./out
|
|
|
|
cp ./LICENSE.txt ./out
|
|
|
|
|
2023-06-07 17:57:56 +00:00
|
|
|
$strip ./out/*.{exe,dll}
|
|
|
|
|
2023-06-05 21:23:08 +00:00
|
|
|
if [ "x$1" = "xrelease" ]; then
|
|
|
|
cd out
|
|
|
|
zip ../jadeite.zip *
|
|
|
|
fi
|