Automated build of the Gpg4win installer

You can build Gpg4win on a Debian system using the list of build dependency packages. You have to setup a system, install those dependencies and follow the instructions. To simplify the process and give all users the possibility to compile a gpg4win Installer on their own, we provide an automated solution that simplifies the process for all stakeholders.


We choose two different environment which can handle the same tasks. It depends on your platform which of the provided solutions you want to use. If you are on a Linux machine and you trust in the provided docker images, you will probably want to use Docker to build your gpg4win installer. If you are on Windows or if you don't trust the provided Docker Images, you may want to use Vagrant.


You have only one dependency to build gpg4win with docker: Docker itself. Docker currently is only stable for some Linux distributions and in beta for Mac and Windows. So if you are on one of those Systems, you may want to checkout the vagrant method. There is a Dockerfile that automatically creates an installer, you can find it zipped or if you want to check it out by yourself, you can find it here. To start building gpg4win you have to download the latest archive and unzip it to a destination folder of your choice. The folder will contain two subfolders, one to build the latest stable release and one to build the latest checkout from the master branch. Choose one of the builds you want to make and follow the steps provided in the file.

Own base Image

If you don't trust the base images provided by Docker, you can build your own, using this Tutorial.


To build gpg4win with Vagrant you have two software-dependencies: Vagrant and Virtualbox. Additionally, you need to make sure, that your VT-X or AMD-V is enabled in your BIOS Settings. Vagrant basically creates an easy-to-use interface for Virtualbox and other virtualisation providers. It sets up a basic image of a pre-defined system and executes commands in it. After you downloaded and installed Vagrant and Virtualbox, you download the zipped archive from our server (sources). When you unzip it, you will find 2 Folders in the archive. With one folder you can build the latest stable release of gpg4win and with the other one you can build the latest head from master. Choose one of the builds you want to have and navigate with a console to the folder. Open up the in the Folder and follow the instructions.

Own base Image

The base Images from Vagrant are build by Debian directly. If you still want to build one by yourself, use this Tutorial


If you got an empty Error message back and you are on Windows 10, after trying to execute vagrant up then you need to install the Microsoft C++ Redistributables 86 bit environment (see the GitHub Issue here)

If you got a error message during vagrant up that state, that rsnyc is not installed or added to your path, you should install a provider for ssh and rsync. cygwin or mingw contain these. If you don't want to or can't install anything in your system, get cwRsync, unzip the archiv, place the folder somewhere and add the bin folder to your System Environment "PATH" Variable.

Gpg4win/automatedbuild (last edited 2016-06-21 12:30:14 by emanuel)