From 06d5126ce9ab5066aacdb1355f16e2e27e3dc0a4 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:07:22 +0100 Subject: [PATCH 1/6] fix npm --- scripts/install | 3 +++ scripts/restore | 18 ++++++++++-------- scripts/upgrade | 17 ++++++++++------- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/scripts/install b/scripts/install index 9c7543d..2874064 100755 --- a/scripts/install +++ b/scripts/install @@ -16,6 +16,9 @@ ynh_script_progression --message="Installing dependencies..." --weight=10 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= diff --git a/scripts/restore b/scripts/restore index 9098333..40778d5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,6 +10,16 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=10 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # STANDARD RESTORATION STEPS #================================================= @@ -45,14 +55,6 @@ chown -R $app:www-data "$data_dir" #================================================= # SPECIFIC RESTORATION -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=10 - -# Define and install dependencies -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version - #================================================= # RESTORE SYSTEMD #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7f9f63a..88768ad 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,16 @@ source _common.sh source /usr/share/yunohost/helpers +#================================================= +# INSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Upgrading dependencies..." --weight=10 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # CHECK VERSION #================================================= @@ -68,13 +78,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." --weight=10 - -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version - #================================================= # SPECIFIC UPGRADE #================================================= From 4c2b7ac7328eec991b300a0bafa3642d703f6955 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:01:36 +0100 Subject: [PATCH 2/6] Update nodejs version --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 18046c5..14f779d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ # dependencies used by the app # nodejs version -nodejs_version=16 +nodejs_version=18 #================================================= # PERSONAL HELPERS From 755cf108f15eddded5737bfc3751663380996a13 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 4 Dec 2023 19:31:20 +0100 Subject: [PATCH 3/6] revert update nodejs to 18 --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 14f779d..18046c5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ # dependencies used by the app # nodejs version -nodejs_version=18 +nodejs_version=16 #================================================= # PERSONAL HELPERS From 7b115c523b42a2b59a954202c5d5342bf633ffc1 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 4 Dec 2023 19:35:53 +0100 Subject: [PATCH 4/6] fix npm version for nodejs 16 --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2874064..cd64e0a 100755 --- a/scripts/install +++ b/scripts/install @@ -17,7 +17,7 @@ ynh_script_progression --message="Installing dependencies..." --weight=10 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version # Upgrade NPM -ynh_npm install --global npm@latest +ynh_npm install --global npm@7.21.1 #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE diff --git a/scripts/restore b/scripts/restore index 40778d5..fc373e5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -18,7 +18,7 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=10 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version # Upgrade NPM -ynh_npm install --global npm@latest +ynh_npm install --global npm@7.21.1 #================================================= # STANDARD RESTORATION STEPS diff --git a/scripts/upgrade b/scripts/upgrade index 88768ad..66248a8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,7 +17,7 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=10 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version # Upgrade NPM -ynh_npm install --global npm@latest +ynh_npm install --global npm@7.21.1 #================================================= # CHECK VERSION From 7c5b698ac0fcbc2aeb4f842c3286e2fd497f03d7 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 24 Dec 2023 05:15:19 +0100 Subject: [PATCH 5/6] Upgrade to v2.7.0 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 97b1e40..0d44ad7 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Audiobookshelf" description.en = "Audiobook server for managing and playing your audiobooks" description.fr = "Serveur de livres audio pour gérer et lire vos livres audio" -version = "2.6.0~ynh1" +version = "2.7.0~ynh1" maintainers = ["Navan Chauhan"] @@ -36,8 +36,8 @@ ram.runtime = "50M" [resources] [resources.sources] [resources.sources.main] - url = "https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.6.0.tar.gz" - sha256 = "fa705ca0096c5eefc4358cebd6eb84f741327fb1cd940689cf80717ce0472e78" + url = "https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.7.0.tar.gz" + sha256 = "6202136ca7bcd00d3275d77dc3b007d116d1515f8b390203c9bd39996e99047b" autoupdate.strategy = "latest_github_tag" [resources.system_user] From ababec1eaa0fad90f596ee35cfff2528e458f823 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 24 Dec 2023 04:15:20 +0000 Subject: [PATCH 6/6] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0dada3c..c1129a1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Audiobookshelf is a self-hosted audiobook server for managing and playing your a * Chromecast support on the web app * Fetch metadata and cover art from several sources -**Shipped version:** 2.6.0~ynh1 +**Shipped version:** 2.7.0~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 8ab4ed9..e1df966 100644 --- a/README_fr.md +++ b/README_fr.md @@ -31,7 +31,7 @@ Audiobookshelf est un serveur auto-hébergé pour gérer et lire vos livres audi * Support de Chromecast dans la webapp * Récupération des métadonnées et des pochettes depuis plusieurs sources -**Version incluse :** 2.6.0~ynh1 +**Version incluse :** 2.7.0~ynh1 ## Captures d’écran