Ajoute génération automatique d'une carte avec minetestmapper
This commit is contained in:
20
install.sh
20
install.sh
@@ -265,6 +265,25 @@ post_install() {
|
||||
fi
|
||||
}
|
||||
|
||||
install_mtmapper() {
|
||||
if [ -n $ssh ]; then
|
||||
URL=$ssh\:minetest
|
||||
else
|
||||
URL="https://sys4.fr/gitea/minetest"
|
||||
fi
|
||||
|
||||
if [ ! -d "$(pwd)/minetestmapper" ]; then
|
||||
git clone --depth 1 $URL/minetestmapper.git
|
||||
verif
|
||||
fi
|
||||
|
||||
pushd "$(pwd)/minetestmapper"
|
||||
git pull
|
||||
cmake .
|
||||
make -j$makeopt
|
||||
popd
|
||||
}
|
||||
|
||||
init() {
|
||||
ver=$(strip $1)
|
||||
|
||||
@@ -282,6 +301,7 @@ init() {
|
||||
install_minetest_game
|
||||
install_mods
|
||||
install_world
|
||||
install_mtmapper
|
||||
post_install
|
||||
echo "L'installation est terminé. Bravo !"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user