1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00
This commit is contained in:
Éric Gaspar 2024-05-16 11:50:17 +02:00
parent db6eb515d7
commit e186f11f08
2 changed files with 5 additions and 28 deletions

View file

@ -24,17 +24,7 @@ chown -R $app:$app "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Building Minetest..." ynh_script_progression --message="Building Minetest..."
# Install the game ynh_setup_source --dest_dir=$install_dir/games/$game --source_id=$game
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
fi
# Install IrrlichtMt # Install IrrlichtMt
ynh_setup_source --dest_dir=$install_dir/lib/irrlichtmt --source_id=irrlichtmt ynh_setup_source --dest_dir=$install_dir/lib/irrlichtmt --source_id=irrlichtmt

View file

@ -38,14 +38,10 @@ fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir" --full_replace=1
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:$app "$install_dir" chown -R $app:$app "$install_dir"
@ -58,16 +54,7 @@ chown -R $app:$app "$install_dir"
ynh_script_progression --message="Building Minetest..." ynh_script_progression --message="Building Minetest..."
# Install the game # Install the game
if [ $game = "capturetheflag" ]; then ynh_setup_source --dest_dir=$install_dir/games/$game --source_id=$game
# 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
fi
# Install IrrlichtMt # Install IrrlichtMt
ynh_setup_source --dest_dir=$install_dir/lib/irrlichtmt --source_id=irrlichtmt ynh_setup_source --dest_dir=$install_dir/lib/irrlichtmt --source_id=irrlichtmt