diff --git a/README.md b/README.md
index 58d8a7e..5115d34 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ A free & open source IMDb front-end.
-**Shipped version:** 3.1.0~ynh2
+**Shipped version:** 3.1.1~ynh1
**Demo:** https://libremdb.iket.me/about
@@ -39,7 +39,6 @@ A free & open source IMDb front-end.
* Official app website:
* Upstream app code repository:
-* YunoHost documentation for this app:
* Report a bug:
## Developer info
diff --git a/README_fr.md b/README_fr.md
index 0e5642e..75c42ea 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -27,7 +27,7 @@ A free & open source IMDb front-end.
-**Version incluse :** 3.1.0~ynh2
+**Version incluse :** 3.1.1~ynh1
**Démo :** https://libremdb.iket.me/about
@@ -39,7 +39,6 @@ A free & open source IMDb front-end.
* Site officiel de l’app :
* Dépôt de code officiel de l’app :
-* Documentation YunoHost pour cette app :
* Signaler un bug :
## Informations pour les développeurs
diff --git a/manifest.toml b/manifest.toml
index be1776e..5d30375 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -5,7 +5,7 @@ name = "Libremdb"
description.en = "Free & open source IMDb front-end"
description.fr = "Frontal IMDb gratuit et open source"
-version = "3.1.0~ynh2"
+version = "3.1.1~ynh1"
maintainers = []
@@ -35,8 +35,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
- url = "https://github.com/zyachel/libremdb/archive/refs/tags/v3.1.0.tar.gz"
- sha256 = "2af323505e30a8d053a59fac4d3e0693b131d1beba475c61844fe62cccffa325"
+ url = "https://github.com/zyachel/libremdb/archive/refs/tags/v3.1.1.tar.gz"
+ sha256 = "eb1845580d2ca7cb90d4cbd4852f8eae299e16fa36032a9c6a5114d4f73a380b"
autoupdate.strategy = "latest_github_tag"
[resources.ports]
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 663310b..4ebfa3b 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -7,7 +7,7 @@
#=================================================
# nodejs version
-nodejs_version=16
+nodejs_version=18
#=================================================
# PERSONAL HELPERS
diff --git a/scripts/install b/scripts/install
index 77906e7..d650f0e 100755
--- a/scripts/install
+++ b/scripts/install
@@ -43,17 +43,6 @@ ynh_add_nginx_config
redis_db=$(ynh_redis_get_free_db)
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
-#=================================================
-# INSTALL LIBREMDB
-#=================================================
-ynh_script_progression --message="Building the app..." --weight=20
-
-pushd $install_dir
- ynh_use_nodejs
- ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
- ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
-popd
-
#=================================================
# ADD A CONFIGURATION
#=================================================
@@ -64,6 +53,20 @@ ynh_add_config --template="../conf/.env.local.example" --destination="$install_d
chmod 400 "$install_dir/.env.local"
chown $app:$app "$install_dir/.env.local"
+
+#=================================================
+# INSTALL LIBREMDB
+#=================================================
+ynh_script_progression --message="Building the app..." --weight=20
+
+pushd $install_dir
+ ynh_use_nodejs
+ corepack enable
+ corepack prepare pnpm@latest --activate
+ ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
+ ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
+popd
+
#=================================================
# SETUP SYSTEMD
#=================================================