From c0e9b3ba8e49441ed1ba5f09a7744bff8e29d606 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 20 Apr 2022 19:38:22 +0000 Subject: [PATCH 1/4] Upgrade n to v8.2.0 --- helpers/nodejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/nodejs b/helpers/nodejs index 0b4457b1b..68220c0af 100644 --- a/helpers/nodejs +++ b/helpers/nodejs @@ -1,6 +1,6 @@ #!/bin/bash -n_version=8.0.2 +n_version=8.2.0 n_install_dir="/opt/node_n" node_version_path="$n_install_dir/n/versions/node" # N_PREFIX is the directory of n, it needs to be loaded as a environment variable. From 9c804d1ca2b7b09f10897cde8dacaede1d00664f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 28 Apr 2022 21:39:23 +0200 Subject: [PATCH 2/4] Update n checksum with autoupdater --- .github/workflows/n_updater.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/n_updater.sh b/.github/workflows/n_updater.sh index 0ea226888..1dc3531a1 100644 --- a/.github/workflows/n_updater.sh +++ b/.github/workflows/n_updater.sh @@ -70,6 +70,9 @@ echo "Calculated checksum for n v${version} is $checksum" # Replace new version in helper sed -i -E "s/^n_version=.*$/n_version=$version/" helpers/nodejs +# Replace checksum in helper +sed -i -E "s/^n_checksum=.*$/n_checksum=$checksum\"/" helpers/nodejs + # The Action will proceed only if the PROCEED environment variable is set to true echo "PROCEED=true" >> $GITHUB_ENV exit 0 From d05f192a4f4d5b511577213302e541d7c62fb0dc Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 28 Apr 2022 21:42:19 +0200 Subject: [PATCH 3/4] Update n checksum with autoupdater --- .github/workflows/n_updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/n_updater.sh b/.github/workflows/n_updater.sh index 1dc3531a1..a8b0b0eec 100644 --- a/.github/workflows/n_updater.sh +++ b/.github/workflows/n_updater.sh @@ -71,7 +71,7 @@ echo "Calculated checksum for n v${version} is $checksum" sed -i -E "s/^n_version=.*$/n_version=$version/" helpers/nodejs # Replace checksum in helper -sed -i -E "s/^n_checksum=.*$/n_checksum=$checksum\"/" helpers/nodejs +sed -i -E "s/^n_checksum=.*$/n_checksum=$checksum/" helpers/nodejs # The Action will proceed only if the PROCEED environment variable is set to true echo "PROCEED=true" >> $GITHUB_ENV From 437c9670983cd3ff4c5b9d656fb5b733fd8b0e1f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 28 Apr 2022 21:42:46 +0200 Subject: [PATCH 4/4] Update nodejs helper for autoupdater --- helpers/nodejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/nodejs b/helpers/nodejs index 68220c0af..42c25e51f 100644 --- a/helpers/nodejs +++ b/helpers/nodejs @@ -1,6 +1,7 @@ #!/bin/bash n_version=8.2.0 +n_checksum=75efd9e583836f3e6cc6d793df1501462fdceeb3460d5a2dbba99993997383b9 n_install_dir="/opt/node_n" node_version_path="$n_install_dir/n/versions/node" # N_PREFIX is the directory of n, it needs to be loaded as a environment variable. @@ -16,7 +17,7 @@ export N_PREFIX="$n_install_dir" ynh_install_n() { # Build an app.src for n echo "SOURCE_URL=https://github.com/tj/n/archive/v${n_version}.tar.gz -SOURCE_SUM=1cdc34d3a53a13a23675797dd775d562e33e64877e367df9d1afe863719de973" >"$YNH_APP_BASEDIR/conf/n.src" +SOURCE_SUM=${n_checksum}" >"$YNH_APP_BASEDIR/conf/n.src" # Download and extract n ynh_setup_source --dest_dir="$n_install_dir/git" --source_id=n # Install n