LBRY-Vault/contrib/build-wine/docker
2018-07-09 17:52:02 +02:00
..
Dockerfile fix #4508: pin down wine deps in docker win build 2018-07-09 17:52:02 +02:00
README.md docker: simplify README.md (#4521) 2018-07-09 14:50:37 +02:00

Deterministic Windows binaries with Docker

This assumes an Ubuntu host, but it should not be too hard to adapt to another similar system. The docker commands should be executed in the project's root folder.

  1. Install Docker

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    $ sudo apt-get update
    $ sudo apt-get install -y docker-ce
    
  2. Build image

    $ sudo docker build --no-cache -t electrum-wine-builder-img contrib/build-wine/docker
    

    Note: see this if having dns problems

  3. Build Windows binaries

    $ TARGET=master
    $ sudo docker run \
        --name electrum-wine-builder-cont \
        -v .:/opt/electrum \
        --rm \
        --workdir /opt/electrum/contrib/build-wine \
        electrum-wine-builder-img \
        ./build.sh $TARGET
    
  4. The generated binaries are in ./contrib/build-wine/dist.

Note: the setup binary (NSIS installer) is not deterministic yet.