From da740255f7ee15973ccd0fe91ebeb8323aba9bd6 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Sun, 31 May 2020 13:55:14 +0200
Subject: [PATCH] [docs] update arm release instructions

---
 doc/release/create_arm_release.md | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/doc/release/create_arm_release.md b/doc/release/create_arm_release.md
index 2d98604eb..6fc1b6d5f 100644
--- a/doc/release/create_arm_release.md
+++ b/doc/release/create_arm_release.md
@@ -12,28 +12,31 @@ To produce an arm release file, there is currently the following requirement:
 - raspbian jessie is the safest, if you produce the .deb file on more recent versions, it won't be installable on older ones, so avoid that!
 - git (apt-get install git)
 - zip (don't laugh, it is not included by default in raspbian) : sudo apt-get install zip
+- nvm
 - do not run anything else on that pi during the build, as it almost takes the 1 Gb and you may just run out of memory if you have other things running.
 
-## Installing Node
+## Installing nvm
 
-You need to install node with the exact version that is currently used. You can find the exact version for all archs by running:
+    wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
 
-    ```
-    grep "VERSION=" release/arch/*/build*
-    ```
+## Installing node
 
-Download the file from https://github.com/jytou/NodeJs-Raspberry-Pi and run it (use sudo), for instance if the version of node is 8.9.1 (the current one):
+You need to install node with the exact version that is currently used. You can find the exact version for arm arch by running:
 
     ```
-    sudo ./Install-Node.sh 8.9.1
+    grep "VERSION=" release/arch/arm/build*
     ```
 
+Install expected node version:
+
+    nvm install x.y.z
+
 ## Checking out and building Duniter
 
 Check out the project and build it with the correct branch number:
 
     ```
-    git clone https://git.duniter.org/nodes/typescript/duniter.git -b 1.7
+    git clone https://git.duniter.org/nodes/typescript/duniter.git -b release/1.8
     cd duniter/
     release/scripts/build.sh make arm <version_number>
     ```
@@ -42,8 +45,8 @@ Check out the project and build it with the correct branch number:
 
 Once the release is done, the .deb file is in release/arch/arm.
 
-Go to [https://git.duniter.org/nodes/typescript/duniter/tags/](https://git.duniter.org/nodes/typescript/duniter/tags/)
+Go to [https://git.duniter.org/nodes/typescript/duniter/-/releases/](https://git.duniter.org/nodes/typescript/duniter/-/releases/)
 
-Edit the release notes page of the wanted tag and upload the .deb file there, try to respect the format of existing packages on the page.
+Edit the release notes page of the wanted version and upload the .deb file there, try to respect the format of existing packages on the page.
 
 Congrats, you're done!
-- 
GitLab