mirror of
https://github.com/YunoHost-Apps/minetest_ynh.git
synced 2024-09-03 20:36:00 +02:00
fix
This commit is contained in:
parent
34601762c6
commit
c95fda4ee5
3 changed files with 8 additions and 10 deletions
|
@ -84,6 +84,11 @@ ram.runtime = "50M"
|
||||||
sha256 = "2fde8e27144988210b9c0ff1e202905834d9d25aaa63ce452763fd7171096adc"
|
sha256 = "2fde8e27144988210b9c0ff1e202905834d9d25aaa63ce452763fd7171096adc"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
|
[resources.sources.capturetheflag]
|
||||||
|
url = "https://github.com/MT-CTF/capturetheflag/archive/refs/tags/v3.7.tar.gz"
|
||||||
|
sha256 = "d81f4277761a072f0516e1363e7fa171a9f25b55d4c5f2e0114544fa8f9df99d"
|
||||||
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -26,9 +26,8 @@ ynh_script_progression --message="Building Minetest..."
|
||||||
|
|
||||||
# Install the game
|
# Install the game
|
||||||
if [ $game = "capturetheflag" ]; then
|
if [ $game = "capturetheflag" ]; then
|
||||||
pushd $install_dir
|
# Download Capture The Flag
|
||||||
git clone --recursive https://github.com/MT-CTF/capturetheflag.git games/capturetheflag
|
ynh_setup_source --dest_dir=$install_dir/games/capturetheflag --source_id=capturetheflag
|
||||||
popd
|
|
||||||
else
|
else
|
||||||
# Download Minetest Game
|
# Download Minetest Game
|
||||||
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game
|
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game
|
||||||
|
|
|
@ -60,13 +60,7 @@ ynh_script_progression --message="Building Minetest..."
|
||||||
# Install the game
|
# Install the game
|
||||||
if [ $game = "capturetheflag" ]; then
|
if [ $game = "capturetheflag" ]; then
|
||||||
# Download Capture The Flag
|
# Download Capture The Flag
|
||||||
|
ynh_setup_source --dest_dir=$install_dir/games/capturetheflag --source_id=capturetheflag
|
||||||
pushd $install_dir
|
|
||||||
# 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
|
|
||||||
popd
|
|
||||||
else
|
else
|
||||||
# Download Minetest Game
|
# Download Minetest Game
|
||||||
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game
|
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game
|
||||||
|
|
Loading…
Reference in a new issue