This commit is contained in:
j842
2025-05-26 13:31:56 +12:00
parent ad4d0ddfda
commit d0b9d80445
4 changed files with 57 additions and 0 deletions

20
install_host.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
sudo apt install -y nlohmann-json3-dev wget curl cmake ninja-build
if [ ! -f /usr/local/lib/libassert.a ]; then
git clone https://github.com/jeremy-rifkin/libassert.git
git checkout v2.1.5
mkdir libassert/build
cd libassert/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
sudo make install
cd ../..
rm -rf libassert
fi
if [ ! -f /usr/local/include/httplib.h ]; then
wget https://raw.githubusercontent.com/yhirose/cpp-httplib/refs/heads/master/httplib.h
sudo mv httplib.h /usr/local/include/httplib.h
fi