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

add MineClonia

This commit is contained in:
Mamie 2024-01-08 21:10:41 +01:00
parent 78ded50b21
commit cb7dffe0a4
3 changed files with 12 additions and 1 deletions

View file

@ -40,7 +40,7 @@ ram.runtime = "50M"
ask.en = "Choose a game for your server"
ask.fr = "Choissisez un jeu pour votre serveur"
type = "select"
choices = ["minetest_game", "capturetheflag"]
choices = ["minetest_game", "capturetheflag", "mineclonia"]
default = "minetest_game"
[install.servername]
@ -89,6 +89,11 @@ ram.runtime = "50M"
sha256 = "d81f4277761a072f0516e1363e7fa171a9f25b55d4c5f2e0114544fa8f9df99d"
autoupdate.strategy = "latest_github_tag"
[resources.sources.mineclonia]
url = "https://codeberg.org/mineclonia/mineclonia/archive/0.93.1.tar.gz"
sha256 = "8be826d0105c7508e2c9356ffd2ae02d2d3d88932b1105277c0afa1b96e0d6af"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]
[resources.install_dir]

View file

@ -28,6 +28,9 @@ ynh_script_progression --message="Building Minetest..."
if [ $game = "capturetheflag" ]; then
# Download Capture The Flag
ynh_setup_source --dest_dir=$install_dir/games/capturetheflag --source_id=capturetheflag
elif [ $game = "mineclonia" ]; then
# Download Mineclonia
ynh_setup_source --dest_dir=$install_dir/games/mineclonia --source_id=mineclonia
else
# Download Minetest Game
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game

View file

@ -61,6 +61,9 @@ ynh_script_progression --message="Building Minetest..."
if [ $game = "capturetheflag" ]; then
# Download Capture The Flag
ynh_setup_source --dest_dir=$install_dir/games/capturetheflag --source_id=capturetheflag
elif [ $game = "mineclonia" ]; then
# Download Mineclonia
ynh_setup_source --dest_dir=$install_dir/games/mineclonia --source_id=mineclonia
else
# Download Minetest Game
ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game