From cb7dffe0a473657654a08ccf421f824d6411860e Mon Sep 17 00:00:00 2001 From: Mamie <693751+supermamie@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:10:41 +0100 Subject: [PATCH 1/2] add MineClonia --- manifest.toml | 7 ++++++- scripts/install | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) 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 From af6305283419a90d68c4e09276879451998cfb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:41:35 +0100 Subject: [PATCH 2/2] test mineclonia --- tests.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests.toml b/tests.toml index 7ce4724..d2e4846 100644 --- a/tests.toml +++ b/tests.toml @@ -28,3 +28,8 @@ test_format = 1.0 only = ["install.root", "backup_restore", "upgrade"] args.game = "capturetheflag" + + ["Test-mineclonia"] + + only = ["install.root", "backup_restore", "upgrade"] + args.game = "mineclonia"