1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scratch_ynh.git synced 2024-09-03 20:26:03 +02:00
This commit is contained in:
Éric Gaspar 2024-09-02 08:58:19 +02:00
parent 68e25a30c6
commit 70ef63ea7e
4 changed files with 5 additions and 13 deletions

View file

@ -19,7 +19,7 @@ admindoc = "https://scratch-wiki.info/wiki/Scratch_3.0"
code = "https://github.com/scratchfoundation/scratch-gui"
[integration]
yunohost = ">= 11.2.18"
yunohost = ">= 11.2.29"
helpers_version = "2.1"
architectures = "all"
multi_instance = true

View file

@ -18,8 +18,6 @@ ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/sources"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#=================================================
# Build
#=================================================
@ -27,14 +25,13 @@ ynh_script_progression "Installing $app..."
pushd "$install_dir/sources"
ynh_hide_warnings ynh_exec_as_app node_load_PATH" npm install
ynh_hide_warnings ynh_exec_as_app node_load_PATH" BUILD_MODE=dist npm run build
ynh_hide_warnings ynh_exec_as_app npm install
ynh_hide_warnings ynh_exec_as_app BUILD_MODE=dist npm run build
popd
mv "$install_dir/sources/build" "$install_dir/www"
ynh_safe_rm "$install_dir/sources"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View file

@ -15,8 +15,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================

View file

@ -22,8 +22,6 @@ ynh_script_progression "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/sources" --full_replace
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#=================================================
# Build
#=================================================
@ -31,15 +29,14 @@ ynh_script_progression "Installing $app..."
pushd "$install_dir/sources"
ynh_hide_warnings ynh_exec_as_app node_load_PATH" npm install
ynh_hide_warnings ynh_exec_as_app node_load_PATH" BUILD_MODE=dist npm run build
ynh_hide_warnings ynh_exec_as_app npm install
ynh_hide_warnings ynh_exec_as_app BUILD_MODE=dist npm run build
popd
ynh_safe_rm "$install_dir/www"
mv "$install_dir/sources/build" "$install_dir/www"
ynh_safe_rm "$install_dir/sources"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:www-data" "$install_dir"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================