1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Fix WARNING grep: ../conf/minetest_game.src: No such file or directory

This commit is contained in:
yalh76 2021-05-18 03:14:18 +02:00
parent ed03f31812
commit a7f076306f
2 changed files with 20 additions and 18 deletions

View file

@ -131,21 +131,21 @@ ynh_add_systemd_config
#================================================= #=================================================
ynh_script_progression --message="Building Minetest..." ynh_script_progression --message="Building Minetest..."
# Compile Minetest
pushd /opt/yunohost/$app
# Install the game # Install the game
if [ $game = "capturetheflag" ]; then if [ $game = "capturetheflag" ]; then
pushd $final_path
git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag
else popd
else
# Download Minetest Game # Download Minetest Game
ynh_setup_source --dest_dir=/opt/yunohost/$app/games/minetest_game --source_id=minetest_game ynh_setup_source --dest_dir=$final_path/games/minetest_game --source_id=minetest_game
fi fi
pushd $final_path
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE
make -j$(nproc) make -j$(nproc)
popd popd
#================================================= #=================================================

View file

@ -141,24 +141,26 @@ fi
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
# Compile Minetest # Compile Minetest
pushd /opt/yunohost/$app
# Install the game # Install the game
if [ $game = "capturetheflag" ]; then if [ $game = "capturetheflag" ]; then
# Download Capture The Flag # Download Capture The Flag
pushd $final_path
# To avoid mess remove this first # To avoid mess remove this first
ynh_secure_remove games/capturetheflag/ ynh_secure_remove games/capturetheflag/
# Then clone the latest version from git # Then clone the latest version from git
git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag
else popd
else
# Download Minetest Game # Download Minetest Game
ynh_setup_source --dest_dir=/opt/yunohost/$app/games/minetest_game --source_id=minetest_game ynh_setup_source --dest_dir=$final_path/games/minetest_game --source_id=minetest_game
fi fi
pushd $final_path
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE
make -j$(nproc) make -j$(nproc)
popd popd
#================================================= #=================================================