jytou

Generate a Windows release of Duniter

Prerequisites to build the windows version of duniter

To produce a Windows Release file of duniter, there are a couple of prerequisites:

Pulling from git and building

Then just do the following (and adapt to the current branch, if changed):

git clone https://git.duniter.org/nodes/typescript/duniter.git -b 1.6
cd duniter/

If you are low in memory (less than 4 Gb available), you can open the file release/arch/windows/Vagrantfile, look for "vb.memory" and set it to some lower value (I would recommend at least 2048). Then run:

release/scripts/build.sh make win v<version_number>

Let the release do its work. The first time, Vagrant will need to download the virtualbox image (13 Gb) so depending on your Internet connection it might be long, but it will reuse it the next times (on ubuntu it is stored in /.vagrant.d/boxes, make sure you have some disk space there).

If you have a Vagrant error message such as "No usable default provider could be found for your system.", then your vagrant version is incompatible with your VirtualBox version, and it means Vagrant cannot work with VirtualBox: you have to upgrade Vagrant to a newer version.

Uploading the release on gitlab

Once the release is done, the .exe file is in release/arch/win.

Go to https://git.duniter.org/nodes/typescript/duniter/tags/

Edit the release notes page of the wanted tag and upload the .exe file there, try to respect the format of existing packages on the page.

To do some cleanup, you can simply delete the virtual machine that was created (and yes you can delete all files for it when VB asks), and even delete the duniter directory in which you produced the release to free up some disk space.

You're done!