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:
parent
ed03f31812
commit
a7f076306f
2 changed files with 20 additions and 18 deletions
|
@ -131,21 +131,21 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Building Minetest..."
|
||||
|
||||
# Compile Minetest
|
||||
pushd /opt/yunohost/$app
|
||||
|
||||
# Install the game
|
||||
if [ $game = "capturetheflag" ]; then
|
||||
# Install the game
|
||||
if [ $game = "capturetheflag" ]; then
|
||||
pushd $final_path
|
||||
git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag
|
||||
else
|
||||
# Download Minetest Game
|
||||
ynh_setup_source --dest_dir=/opt/yunohost/$app/games/minetest_game --source_id=minetest_game
|
||||
fi
|
||||
popd
|
||||
else
|
||||
# Download Minetest Game
|
||||
ynh_setup_source --dest_dir=$final_path/games/minetest_game --source_id=minetest_game
|
||||
fi
|
||||
|
||||
pushd $final_path
|
||||
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -141,24 +141,26 @@ fi
|
|||
# SPECIFIC UPGRADE
|
||||
#=================================================
|
||||
# Compile Minetest
|
||||
pushd /opt/yunohost/$app
|
||||
# Install the game
|
||||
if [ $game = "capturetheflag" ]; then
|
||||
# Download Capture The Flag
|
||||
|
||||
# Install the game
|
||||
if [ $game = "capturetheflag" ]; then
|
||||
# Download Capture The Flag
|
||||
|
||||
pushd $final_path
|
||||
# To avoid mess remove this first
|
||||
ynh_secure_remove games/capturetheflag/
|
||||
# Then clone the latest version from git
|
||||
git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag
|
||||
else
|
||||
# Download Minetest Game
|
||||
ynh_setup_source --dest_dir=/opt/yunohost/$app/games/minetest_game --source_id=minetest_game
|
||||
fi
|
||||
popd
|
||||
else
|
||||
# Download Minetest Game
|
||||
ynh_setup_source --dest_dir=$final_path/games/minetest_game --source_id=minetest_game
|
||||
fi
|
||||
|
||||
pushd $final_path
|
||||
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_LUAJIT=TRUE -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue