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

Merge pull request #48 from supermamie/mineclonia

add MineClonia
This commit is contained in:
eric_G 2024-01-09 08:17:55 +01:00 committed by GitHub
commit c451dd2121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 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

View file

@ -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"