From a3cfd34a43c8d77b029a47316ea78a4a729b6a31 Mon Sep 17 00:00:00 2001 From: Mamie <693751+supermamie@users.noreply.github.com> Date: Thu, 16 May 2024 09:53:43 +0200 Subject: [PATCH 1/3] add mineclone2 --- manifest.toml | 8 +++++++- scripts/install | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index a9db551..0ae4836 100644 --- a/manifest.toml +++ b/manifest.toml @@ -38,7 +38,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", "mineclonia"] + choices = ["minetest_game", "capturetheflag", "mineclonia", "mineclone2"] default = "minetest_game" [install.servername] @@ -97,6 +97,12 @@ ram.runtime = "50M" autoupdate.upstream = "https://codeberg.org/mineclonia/mineclonia" autoupdate.strategy = "latest_forgejo_release" + [resources.sources.mineclone2] + url = "https://git.minetest.land/VoxeLibre/VoxeLibre/archive/0.86.2.tar.gz" + sha256 = "97536a9e36482363112185ab936532d034163e3dc1ebd3cb365d018fc14b810d" + autoupdate.upstream = "https://git.minetest.land/VoxeLibre/VoxeLibre" + autoupdate.strategy = "latest_forgejo_release" + [resources.system_user] [resources.install_dir] diff --git a/scripts/install b/scripts/install index 65fc7af..24b7d83 100755 --- a/scripts/install +++ b/scripts/install @@ -31,6 +31,9 @@ if [ $game = "capturetheflag" ]; then elif [ $game = "mineclonia" ]; then # Download Mineclonia ynh_setup_source --dest_dir=$install_dir/games/mineclonia --source_id=mineclonia +elif [ $game = "mineclone2" ]; then + # Download Mineclone2 + ynh_setup_source --dest_dir=$install_dir/games/mineclone2 --source_id=mineclone2 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 f0a3307..52215f3 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,6 +64,9 @@ if [ $game = "capturetheflag" ]; then elif [ $game = "mineclonia" ]; then # Download Mineclonia ynh_setup_source --dest_dir=$install_dir/games/mineclonia --source_id=mineclonia +elif [ $game = "mineclone2" ]; then + # Download Mineclone2 + ynh_setup_source --dest_dir=$install_dir/games/mineclone2 --source_id=mineclone2 else # Download Minetest Game ynh_setup_source --dest_dir=$install_dir/games/minetest_game --source_id=minetest_game From 487c67b0b83ccc13c567e3dccd81e8abf54d89e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 16 May 2024 11:41:40 +0200 Subject: [PATCH 2/3] add test --- manifest.toml | 2 +- tests.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 0ae4836..3cb97ff 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Minetest" description.en = "Voxel game engine and game. Need a client to connect to the server" description.fr = "Moteur de jeu de type « bac à sable ». Nécessite un client pour se connecter au serveur" -version = "5.8.0~ynh3" +version = "5.8.0~ynh4" maintainers = [] diff --git a/tests.toml b/tests.toml index d2e4846..e616f26 100644 --- a/tests.toml +++ b/tests.toml @@ -33,3 +33,8 @@ test_format = 1.0 only = ["install.root", "backup_restore", "upgrade"] args.game = "mineclonia" + + ["Test-mineclone2"] + + only = ["install.root", "backup_restore", "upgrade"] + args.game = "mineclone2" From 6526d15f65a3a48329ffd93c1dc55d771559a97b Mon Sep 17 00:00:00 2001 From: Mamie <693751+supermamie@users.noreply.github.com> Date: Fri, 17 May 2024 11:24:12 +0200 Subject: [PATCH 3/3] clean commit --- manifest.toml | 2 +- tests.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 3cb97ff..0ae4836 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Minetest" description.en = "Voxel game engine and game. Need a client to connect to the server" description.fr = "Moteur de jeu de type « bac à sable ». Nécessite un client pour se connecter au serveur" -version = "5.8.0~ynh4" +version = "5.8.0~ynh3" maintainers = [] diff --git a/tests.toml b/tests.toml index e616f26..22d6335 100644 --- a/tests.toml +++ b/tests.toml @@ -34,7 +34,8 @@ test_format = 1.0 only = ["install.root", "backup_restore", "upgrade"] args.game = "mineclonia" + ["Test-mineclone2"] only = ["install.root", "backup_restore", "upgrade"] - args.game = "mineclone2" + args.game = "mineclone2" \ No newline at end of file