diff --git a/manifest.toml b/manifest.toml index 6dff80c..cda1af0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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] diff --git a/scripts/install b/scripts/install index 90b59b8..65fc7af 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index a94e8ed..f0a3307 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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