Skip to content
Snippets Groups Projects
Commit 3b804b0e authored by Fabian Marquardt's avatar Fabian Marquardt
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
apt install \
git \
g++ \
make \
libc6-dev \
libirrlicht-dev \
cmake \
libbz2-dev \
libpng-dev \
libjpeg-dev \
libxxf86vm-dev \
libgl1-mesa-dev \
libsqlite3-dev \
libogg-dev \
libvorbis-dev \
libopenal-dev \
libcurl4-gnutls-dev \
libfreetype6-dev \
zlib1g-dev \
libgmp-dev \
libjsoncpp-dev \
libpq-dev
#!/bin/bash
systemctl restart minetest
systemctl restart mapserver
#!/bin/bash
# This is the directory and version of the main server code
MINETEST_MODS_DIR=/var/lib/minetest/minetest_mods
MINETEST_VERSION=5.2.0
# Mods repo has its own update script, so we just call it!
cd $MINETEST_MODS_DIR
./update.sh
#!/bin/bash
# This is the directory and version of the main server code
MINETEST_TARGET_DIR=/var/lib/minetest/minetest
MINETEST_VERSION=5.2.0
# This is the directory and version of the base game/mod, i.e. the "minetest_game"
MINETEST_GAME_DIR=/var/lib/minetest/minetest_game
MINETEST_GAME_VERSION=5.2.0
# Pull correct version of minetest_game
cd $MINETEST_GAME_DIR
git fetch -t
git checkout $MINETEST_GAME_VERSION
# Pull correct version of minetest
cd $MINETEST_TARGET_DIR
git fetch -t
git checkout $MINETEST_VERSION
# Build it
cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/
make -j4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment