2022-10-20 18:21:11 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
|
|
|
|
rm -rf woj-sandbox
|
2023-07-14 21:47:11 +08:00
|
|
|
git clone https://git.0x7f.app/WOJ/woj-sandbox.git >/dev/null 2>&1 || exit 1
|
2022-10-20 18:21:11 +08:00
|
|
|
cd woj-sandbox && ./build_libseccomp.sh || exit 1
|
|
|
|
|
2022-10-22 17:38:39 +08:00
|
|
|
mkdir -p build && cd build || exit 1
|
2022-10-20 18:21:11 +08:00
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release || exit 1
|
|
|
|
make -j || exit 1
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
cp woj-sandbox/build/libwoj_sandbox.so . || exit 1
|
|
|
|
cp woj-sandbox/build/woj_launcher . || exit 1
|
|
|
|
rm -rf woj-sandbox
|