From c94195c077ff227e5e2d80e803e1400d7f60812b Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 5 Mar 2025 16:49:09 +0000 Subject: [PATCH] doc: add note to windows build about stripping bin The Windows binaries are particularly big when they contain debug info, closing in on 500mb. Add a note to the Windows build instructions about using `--strip`. --- doc/build-windows.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/build-windows.md b/doc/build-windows.md index 0c1418bff93..03af0654cea 100644 --- a/doc/build-windows.md +++ b/doc/build-windows.md @@ -35,6 +35,7 @@ If you want to build the Windows installer using the `deploy` build target, you apt install nsis + Acquire the source in the usual way: git clone https://github.com/bitcoin/bitcoin.git @@ -61,9 +62,17 @@ After building using the Windows subsystem it can be useful to copy the compiled executables to a directory on the Windows drive in the same directory structure as they appear in the release `.zip` archive. This can be done in the following way. This will install to `c:\workspace\bitcoin`, for example: +```shell +cmake --install build --prefix /mnt/c/workspace/bitcoin +``` - cmake --install build --prefix /mnt/c/workspace/bitcoin +Note that due to the presence of debug information, the binaries may be very large, +if you do not need the debug information, you can prune it during install by calling: +```shell +cmake --install build --prefix /mnt/c/workspace/bitcoin --strip +``` You can also create an installer using: - - cmake --build build --target deploy +```shell +cmake --build build --target deploy +```