Producing an arm (raspberry) Release File

Prerequisites

To produce an arm release file, there is currently the following requirement:

  • a raspberry pi (preferably 3),
  • 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
  • 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 yarn

Install yarn:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

Installing Node

You need to install node with the exact version that is currently used. You can find the exact version for all archs by running:

grep "VERSION=" release/arch/*/build*

Download the file from GitHub - jytou/NodeJs-Raspberry-Pi: Install NodeJs on your Raspberry Pi and run it (use sudo), for instance if the version of node is 8.9.1 (the current one):

sudo ./Install-Node.sh 8.9.1

Checking out and building Duniter

Check out the project and build it with the correct branch number:

git clone nodes / typescript / duniter · GitLab -b 1.6
cd duniter/
release/scripts/build.sh make arm <version_number>

Upload

Once the release is done, the .deb file is in release/arch/arm.

Go to Tags · nodes / typescript / duniter · GitLab

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.

Congrats, you’re done!

4 Likes

@jytou Please copy this tuto (as well as the other one on the window release) to the duniter.org wiki :slight_smile:

Create a .md file here :

Fait, par contre, je ne sais pas trop où les référencer. Peut-être là : https://github.com/duniter/website_en/blob/master/content/pages/contribute.md
Par contre j’ai l’impression que cette page n’est elle-même référencée nulle part…

Tout les tutos relatif a duniter peuvent êtres référencés ici :

@jytou tu peut t’inspirer de la page FR qui est plus complète et créer une catégorie Développement au sein de laquelle tu y placera tes 2 tutos :wink:

@jytou tu a oublier les headers dans les deux pages wiki que tua créer du coup les liens ne marchent pas, voici par exemples les headers de la page commands :

Title: Duniter Commands
Order: 9
Date: 2017-04-08
Slug: commands
Authors: cgeek

Le slug doit être identique au nom du fichier sans extension !

Peut être aussi que pelican gère mal les underscores je t’invite a les remplacer par des traits d’union :wink:

C’était donc ça… j’étais justement en train de faire un message ici. Merci ! :slight_smile:

gitbot :wink:

EDIT : nickel ça fonctionne :slight_smile:

1 Like

Bonjour, est ce prévu de mettre à disposition une version duniter 1.8.1 arm pour raspberry ?
merci de votre réponse
Alain

la 1.81 est un hotfix pour la variante desktop uniquement, sur raspberry il faut utiliser la version 1.8.0 :wink:

Hello,
rapide est la réponse
ok, donc pas de sujet
(je demandais car quand j’interroge mon noeud par w2sp, j’ai cette réponse : Upgrade Required
bien à toi

Bonjour,

« Upgrade required » c’est par rapport au protocole HTTP. WS2P est en websocket donc on ne peut pas l’utiliser directement en navigateur. Pour avoir une interface HTTP simple avec du JSON il faut activer BMA.