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..."
|
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
|
||||||
|
popd
|
||||||
else
|
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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
|
popd
|
||||||
else
|
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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue