doc/README: more files should be copied for dynamic linking

This commit is contained in:
mappu 2024-09-15 11:06:05 +12:00
parent 1df390d042
commit 29e6248669

View File

@ -87,7 +87,7 @@ For dynamically-linked builds (closed-source or open source application):
- `docker build -t miqt/win64-dynamic:latest -f win64-cross-go1.23-qt5.15-dynamic.Dockerfile .`
2. Build your application:
- `docker run --rm -v $(pwd):/src -w /src miqt/win64-dynamic:latest go build -buildvcs=false -ldflags '-s -w -H windowsgui'`
3. Copy necessary Qt LGPL libraries.
3. Copy necessary Qt LGPL libraries and plugin files.
For repeated builds, the compile speed can be improved if you also bind-mount the Docker container's `GOCACHE` directory: `-v $(pwd)/container-build-cache:/root/.cache/go-build`