diff --git a/README.md b/README.md index 726870d..63415d1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Jellyfin app for YunoHost Jellyfin Server -**Shipped version:** 10.2.2 +**Shipped version:** 10.3.7 - [Yunohost project](https://yunohost.org) - [Jellyfin website](https://github.com/jellyfin/jellyfin) diff --git a/conf/app.src b/conf/app.src index 758b4fe..fcfb55a 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/jellyfin/jellyfin/releases/download/v10.2.2/jellyfin_10.2.2-1_debian-amd64.deb -SOURCE_SUM=7a4cc63fd8dfd5535717eae931151dead66293b37246110330dfc1174dac72f3abde75477efed4983c0d2c51331c0efa6ef5b544a2579db6cdd21e80b114eb5c +SOURCE_URL=https://github.com/YunoHost-Apps/jellyfin_ynh/releases/download/10.3.7/jellyfin_10.3.7-1_amd64.deb +SOURCE_SUM=8d50ddcf8a222d3bab2e3a51c4e8d824889edcb4e76e6df4dbfc68fccfd30420937a598e7d1e3c9832cace5aa038536a8d32dfc82d33d419f6d8b9d52880682e SOURCE_SUM_PRG=sha512sum SOURCE_FORMAT=deb SOURCE_IN_SUBDIR=false diff --git a/conf/jellyfin-ffmpeg.src b/conf/jellyfin-ffmpeg.src new file mode 100644 index 0000000..dc880da --- /dev/null +++ b/conf/jellyfin-ffmpeg.src @@ -0,0 +1,7 @@ +SOURCE_URL=https://github.com/YunoHost-Apps/jellyfin_ynh/releases/download/10.3.7/jellyfin-ffmpeg_4.0.4-3-stretch_amd64.deb +SOURCE_SUM=b3bad07eff89f825385a0424a6c7a53c010455fe1ffe7beca3fb8f27a9dd35cdf2b445e00e1b0b8ee1ffe40967a9ed87bb954bc6abdd1b1bf03229ef53615bae +SOURCE_SUM_PRG=sha512sum +SOURCE_FORMAT=deb +SOURCE_IN_SUBDIR=false +SOURCE_EXTRACT=false +SOURCE_FILENAME=jellyfin-ffmpeg.deb diff --git a/manifest.json b/manifest.json index 0232f54..e335b45 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Jellyfin package for YunoHost.", "fr": "Jellyfin pour YunoHost." }, - "version": "10.2.2", + "version": "10.3.7", "url": "https://github.com/jellyfin/jellyfin", "license": "GPL-2.0", "maintainer": { diff --git a/scripts/install b/scripts/install index 025c0c0..3c9ab67 100644 --- a/scripts/install +++ b/scripts/install @@ -66,26 +66,6 @@ ynh_app_setting_set $app domain $domain ynh_app_setting_set $app path $path_url ynh_app_setting_set $app is_public $is_public -#================================================= -# INSTALL DEPENDENCIES -#================================================= - -ynh_print_info "Installing dependencies..." - -### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package. -### Those deb packages will be installed as dependencies of this package. -### If you're not using this helper: -### - Remove the section "REMOVE DEPENDENCIES" in the remove script -### - As well as the section "REINSTALL DEPENDENCIES" in the restore script -### - And the section "UPGRADE DEPENDENCIES" in the upgrade script - -wget -O - https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | apt-key add - -echo "deb [arch=amd64] https://repo.jellyfin.org/debian $( lsb_release -c -s ) main" >> /etc/apt/sources.list.d/jellyfin.list - -ynh_package_update - -ynh_install_app_dependencies jellyfin - #================================================= # FIND AND OPEN A PORT #================================================= @@ -101,6 +81,26 @@ port=$(ynh_find_port 8096) yunohost firewall allow --no-upnp TCP $port 2>&1 ynh_app_setting_set $app port $port +#================================================= +# DOWNLOAD, CHECK AND UNPACK SOURCE +#================================================= + +ynh_app_setting_set $jellyfin-ffmpeg final_path $final_path +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source "$final_path" + +ynh_app_setting_set $app final_path $final_path +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source "$final_path" + + +#============================================== +# INSTALL JELLYFIN +#============================================== + +dpkg --install $final_path/jellyfin-ffmpeg.deb +dpkg --install $final_path/jellyfin.deb + #================================================= # NGINX CONFIGURATION #================================================= @@ -159,4 +159,6 @@ if [ $is_public -eq 1 ]; then fi # Reload services +systemctl enable jellyfin +systemctl start jellyfin systemctl reload nginx