aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-09-20 07:28:06 +0000
committerxiphon <xiphon@protonmail.com>2020-09-20 10:15:04 +0000
commit2d464a126605827c550bafd1d98d5cbafca1cc57 (patch)
tree3e71ed90ae1e54d8f12c4cdce66d81b48bb8db7c /README.md
parentd313c2de377e5163a27835d28a835c274ee7abf4 (diff)
downloadmonzero-gui-2d464a126605827c550bafd1d98d5cbafca1cc57.tar.gz
monzero-gui-2d464a126605827c550bafd1d98d5cbafca1cc57.tar.xz
monzero-gui-2d464a126605827c550bafd1d98d5cbafca1cc57.zip
docker: Windows static build (cross-compilation from Linux)
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 24 insertions, 2 deletions
diff --git a/README.md b/README.md
index 6b8549a5..22f13843 100644
--- a/README.md
+++ b/README.md
@@ -82,6 +82,28 @@ Packaging for your favorite distribution would be a welcome contribution!
*Note*: Qt 5.9.7 is the minimum version required to build the GUI.
+### Building Windows static binaries with Docker (any OS)
+
+1. Install Docker [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
+2. Clone the repository
+ ```
+ git clone --recursive https://github.com/monero-project/monero-gui.git
+ ```
+3. Prepare build environment
+ ```
+ cd monero-gui
+ docker build --tag monero:build-env-windows --build-arg THREADS=4 --file Dockerfile.windows .
+ ```
+ \* `4` - number of CPU threads to use
+
+4. Build
+ ```
+ docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-windows sh -c 'make depends root=/depends target=x86_64-w64-mingw32 tag=win-x64 -j4'
+ ```
+ \* `<MONERO_GUI_DIR_FULL_PATH>` - absolute path to `monero-gui` directory
+ \* `4` - number of CPU threads to use
+5. Monero GUI Windows static binaries will be placed in `monero-gui/build/x86_64-w64-mingw32/release/bin` directory
+
### Building Linux static binaries with Docker (any OS)
1. Install Docker [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)
@@ -92,13 +114,13 @@ Packaging for your favorite distribution would be a welcome contribution!
3. Prepare build environment
```
cd monero-gui
- docker build --tag monero:build-env-gui --build-arg THREADS=4 .
+ docker build --tag monero:build-env-linux --build-arg THREADS=4 --file Dockerfile.linux .
```
\* `4` - number of CPU threads to use
4. Build
```
- docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-gui sh -c 'USE_SINGLE_BUILDDIR=ON DEV_MODE=ON make release-static -j4'
+ docker run --rm -it -v <MONERO_GUI_DIR_FULL_PATH>:/monero-gui -w /monero-gui monero:build-env-linux sh -c 'USE_SINGLE_BUILDDIR=ON make release-static -j4'
```
\* `<MONERO_GUI_DIR_FULL_PATH>` - absolute path to `monero-gui` directory
\* `4` - number of CPU threads to use