From 3f88170478890414a6a8ed2a27a612e7fc7b99ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:12:31 +0200 Subject: [PATCH 1/8] cleaning --- manifest.toml | 3 ++- scripts/install | 6 +----- scripts/remove | 2 -- scripts/upgrade | 5 ----- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/manifest.toml b/manifest.toml index e470883..ea5cacb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ cpe = "cpe:2.3:a:trilium_project:trilium" fund = "https://github.com/sponsors/zadam" [integration] -yunohost = ">= 11.1.15" +yunohost = ">= 11.1.16" architectures = [ "amd64", "arm64", "armhf" ] multi_instance = true ldap = false @@ -56,6 +56,7 @@ ram.runtime = "110M" url = "https://github.com/zadam/trilium/archive/refs/tags/v0.59.2.tar.gz" sha256 = "29dfd218cfc9f1263e2c38fa098ce7363cbf9bc802ff9776a675159dc8b6f368" rename = "v0.59.2.tar.gz" + autoupdate.strategy = "latest_github_tag" [resources.system_user] diff --git a/scripts/install b/scripts/install index dc560e8..ed939e8 100644 --- a/scripts/install +++ b/scripts/install @@ -28,9 +28,7 @@ ynh_setup_source --dest_dir="$install_dir" grep -v electron "$install_dir/package.json" > "$install_dir/server-package.json" mv "$install_dir/server-package.json" "$install_dir/package.json" -# $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 + chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -68,8 +66,6 @@ yunohost service add $app --description="Trilium Notes app" --log="systemd" #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -### You can add specific configuration files. - ynh_add_config --template="../conf/config.ini" --destination="$install_dir/config.ini" ln -sf $install_dir/config.ini $data_dir/config.ini diff --git a/scripts/remove b/scripts/remove index 03deb14..1058550 100644 --- a/scripts/remove +++ b/scripts/remove @@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Removing system configurations related to $app..." -# This should be a symetric version of what happens in the install script - # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then diff --git a/scripts/upgrade b/scripts/upgrade index fdbfef7..0404c45 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,9 +35,6 @@ then mv "$install_dir/server-package.json" "$install_dir/package.json" fi -# $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 chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -65,8 +62,6 @@ popd #================================================= ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 -# This should be a literal copypasta of what happened in the install's "System configuration" section - ynh_add_nginx_config ynh_add_systemd_config From f9e922e8ea1280260bbc3f5992aebc46d0489547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:12:39 +0200 Subject: [PATCH 2/8] Update restore --- scripts/restore | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/restore b/scripts/restore index 3e28028..2495a67 100644 --- a/scripts/restore +++ b/scripts/restore @@ -17,9 +17,6 @@ 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" #================================================= @@ -29,7 +26,6 @@ ynh_script_progression --message="Restoring the data directory..." --weight=50 ynh_restore_file --origin_path="$data_dir" --not_mandatory -# (Same as for install dir) chown -R $app:www-data "$data_dir" #================================================= @@ -44,8 +40,6 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= ynh_script_progression --message="Restoring system configurations related to $app..." --weight=10 -# This should be a symetric version of what happens in the install script - ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" From 2b6634493987d61d96d1dc25ae8c97e8505086ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:25:21 +0200 Subject: [PATCH 3/8] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index ea5cacb..b640035 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ cpe = "cpe:2.3:a:trilium_project:trilium" fund = "https://github.com/sponsors/zadam" [integration] -yunohost = ">= 11.1.16" +yunohost = ">= 11.2" architectures = [ "amd64", "arm64", "armhf" ] multi_instance = true ldap = false From 7d6117c7cedc5175432168ecd48f79c6d1abb9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:28:37 +0200 Subject: [PATCH 4/8] upgrade --- manifest.toml | 8 ++++---- scripts/_common.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index b640035..62a6fe8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Trilium Notes" description.en = "Hierarchical note taking application with focus on building large personal knowledge base" description.fr = "Application de prise de note hiérarchique centrée sur la construction d'une large base de connaissances personnelle" -version = "0.59.2~ynh1" +version = "0.60.4~ynh1" maintainers = ["Jules Bertholet"] @@ -53,9 +53,9 @@ ram.runtime = "110M" [resources.sources] [resources.sources.main] - url = "https://github.com/zadam/trilium/archive/refs/tags/v0.59.2.tar.gz" - sha256 = "29dfd218cfc9f1263e2c38fa098ce7363cbf9bc802ff9776a675159dc8b6f368" - rename = "v0.59.2.tar.gz" + url = "https://github.com/zadam/trilium/archive/refs/tags/v0.60.4.tar.gz" + sha256 = "3a7a03d6c345f5a4cd765c0fdd6a927227735c5153449cb863e5e0e40108f972" + rename = "v0.60.4.tar.gz" autoupdate.strategy = "latest_github_tag" [resources.system_user] diff --git a/scripts/_common.sh b/scripts/_common.sh index b818f0f..44277c5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=16 +nodejs_version=20 #================================================= # PERSONAL HELPERS From f6d40ba29a50b429138c1a636cd1be239748f2ad Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 29 Aug 2023 20:50:50 +0000 Subject: [PATCH 5/8] 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 673c6ed..550e163 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Trilium Notes is an Evernote-like hierarchical note taking application with many advanced features, focused on building a large personal knowledge base. -**Shipped version:** 0.59.2~ynh1 +**Shipped version:** 0.60.4~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index b9769cc..f8c888a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Trilium Notes est une application de prise de note hiérarchique semblable a Evernote, avec maintes fonctions avancées, centrée sur la construction d'une large base de connaissances personnelle. -**Version incluse :** 0.59.2~ynh1 +**Version incluse :** 0.60.4~ynh1 ## Captures d’écran From 604845ada86f736b548055181155f72e688fc6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:24:19 +0200 Subject: [PATCH 6/8] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index ed939e8..31bf435 100644 --- a/scripts/install +++ b/scripts/install @@ -29,7 +29,6 @@ ynh_setup_source --dest_dir="$install_dir" grep -v electron "$install_dir/package.json" > "$install_dir/server-package.json" mv "$install_dir/server-package.json" "$install_dir/package.json" -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" From 96d32a35e843d2431e82e11ee7c0bd0a54be53fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:24:31 +0200 Subject: [PATCH 7/8] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 44277c5..9195d57 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=20 +nodejs_version=18 #================================================= # PERSONAL HELPERS From 578d16819621a725f81a7882c578392f3616e55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 30 Aug 2023 09:22:22 +0200 Subject: [PATCH 8/8] Update tests.toml --- tests.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.toml b/tests.toml index 2d4a70e..1f15c84 100644 --- a/tests.toml +++ b/tests.toml @@ -6,4 +6,4 @@ test_format = 1.0 # Commits to test upgrade from # ------------------------------- - test_upgrade_from.85a53b5.name = "Merge pull request #36 from YunoHost-Apps/testing" + #test_upgrade_from.85a53b5.name = "Merge pull request #36 from YunoHost-Apps/testing"