1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin-vue_ynh.git synced 2024-09-03 19:26:31 +02:00

Fixes upgrade?

This commit is contained in:
Thomas 2023-10-07 09:11:14 +02:00 committed by GitHub
parent 6643f6a5ae
commit a8e9851309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 24 deletions

View file

@ -9,13 +9,12 @@ description.fr = "Un client web moderne pour Jellyfin basé sur Vue."
version = "0.3.1~ynh1"
maintainers = ["johndoe"]
maintainers = [""]
[upstream]
license = "GPLv3"
website = "https://github.com/jellyfin/jellyfin-vue"
# admindoc = "https://yunohost.org/packaging_apps"
# userdoc = "https://yunohost.org/apps"
code = "https://github.com/jellyfin/jellyfin-vue"
fund = "https://opencollective.com/jellyfin"
@ -32,38 +31,23 @@ ram.runtime = "0M"
[install]
[install.domain]
# this is a generic question - ask strings are automatically handled by YunoHost's core
type = "domain"
[install.path]
# this is a generic question - ask strings are automatically handled by YunoHost's core
type = "path"
default = "/jellyfin-vue"
[install.init_main_permission]
# this is a generic question - ask strings are automatically handled by YunoHost's core
# This won't be saved as setting and will instead be used to initialize the SSOwat permission
type = "group"
default = "visitors"
[resources]
# See the packaging documentation for the full set
# of explanation regarding the behavior and properties for each of those
[resources.sources]
[resources.sources.main]
# This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with :
# ynh_setup_source --dest_dir="$install_dir"
# You can also define other assets than "main" and add --source_id="foobar" in the previous command
url = "https://github.com/jellyfin/jellyfin-vue/archive/refs/tags/0.3.1.tar.gz"
sha256 = "49316b5f7ef57d09bfa31e5e461fac1866d03902f9b087d2c3ec5b294ed934f8"
# These infos are used by https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py
# to auto-update the previous asset urls and sha256sum + manifest version
# assuming the upstream's code repo is on github and relies on tags or releases
# See the 'sources' resource documentation for more details
autoupdate.strategy = "latest_github_tag"
[resources.system_user]

View file

@ -17,15 +17,12 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
# $install_dir will automatically be initialized with some decent
# permission by default ... however, you may need to recursively reapply
# ownership to all files such as after the ynh_setup_source step
chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1

View file

@ -56,8 +56,8 @@ then
ynh_script_progression --message="Building Jellyfin Vue... (this will take some time and resources!)" --weight=24
_patch_config_json "$install_dir/source"
_npm_build_install "$install_dir/source" "$install_dir/www" "$path/"
ynh_exec_as $app _patch_config_json "$install_dir/source"
ynh_exec_as $app _npm_build_install "$install_dir/source" "$install_dir/www" "$path/"
fi
# $install_dir will automatically be initialized with some decent