diff --git a/README.md b/README.md index b77f5a6a..3052bba9 100644 --- a/README.md +++ b/README.md @@ -202,14 +202,14 @@ For static linking: 1. Build the necessary docker container for cross-compilation: - `docker build -t miqt/win64-cross:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile .` 2. Build your application: - - `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build -buildvcs=false --tags=windowsqtstatic -ldflags '-s -w -H windowsgui'` + - `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build --tags=windowsqtstatic -ldflags '-s -w -H windowsgui'` For dynamic linking: 1. Build the necessary docker container for cross-compilation: - `docker build -t miqt/win64-dynamic:latest -f docker/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'` + - `docker run --rm -v $(pwd):/src -w /src miqt/win64-dynamic:latest go build -ldflags '-s -w -H windowsgui'` 3. Copy necessary Qt LGPL libraries and plugin files. See FAQ Q3 for advice about docker performance. diff --git a/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile b/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile index 70eafde7..f555dfed 100644 --- a/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile +++ b/docker/win64-cross-go1.19-qt5.15-dynamic.Dockerfile @@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.shared-gcc ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config ENV GOOS=windows ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false diff --git a/docker/win64-cross-go1.19-qt5.15-static.Dockerfile b/docker/win64-cross-go1.19-qt5.15-static.Dockerfile index 285440f0..c9f03730 100644 --- a/docker/win64-cross-go1.19-qt5.15-static.Dockerfile +++ b/docker/win64-cross-go1.19-qt5.15-static.Dockerfile @@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.static-gcc ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config ENV GOOS=windows ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false diff --git a/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile b/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile index fceab4dd..867186d2 100644 --- a/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile +++ b/docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile @@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.shared-gcc ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config ENV GOOS=windows ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false diff --git a/docker/win64-cross-go1.23-qt5.15-static.Dockerfile b/docker/win64-cross-go1.23-qt5.15-static.Dockerfile index 876973bd..425a2905 100644 --- a/docker/win64-cross-go1.23-qt5.15-static.Dockerfile +++ b/docker/win64-cross-go1.23-qt5.15-static.Dockerfile @@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.static-gcc ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config ENV GOOS=windows ENV CGO_ENABLED=1 +ENV GOFLAGS=-buildvcs=false