mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
build/windows: move buildvcs flag from README into container files
This commit is contained in:
parent
eaa6cf4494
commit
18db56b618
@ -202,14 +202,14 @@ For static linking:
|
|||||||
1. Build the necessary docker container for cross-compilation:
|
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 .`
|
- `docker build -t miqt/win64-cross:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile .`
|
||||||
2. Build your application:
|
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:
|
For dynamic linking:
|
||||||
|
|
||||||
1. Build the necessary docker container for cross-compilation:
|
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 .`
|
- `docker build -t miqt/win64-dynamic:latest -f docker/win64-cross-go1.23-qt5.15-dynamic.Dockerfile .`
|
||||||
2. Build your application:
|
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.
|
3. Copy necessary Qt LGPL libraries and plugin files.
|
||||||
|
|
||||||
See FAQ Q3 for advice about docker performance.
|
See FAQ Q3 for advice about docker performance.
|
||||||
|
@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.shared-gcc
|
|||||||
ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config
|
ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config
|
||||||
ENV GOOS=windows
|
ENV GOOS=windows
|
||||||
ENV CGO_ENABLED=1
|
ENV CGO_ENABLED=1
|
||||||
|
ENV GOFLAGS=-buildvcs=false
|
||||||
|
@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.static-gcc
|
|||||||
ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config
|
ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config
|
||||||
ENV GOOS=windows
|
ENV GOOS=windows
|
||||||
ENV CGO_ENABLED=1
|
ENV CGO_ENABLED=1
|
||||||
|
ENV GOFLAGS=-buildvcs=false
|
||||||
|
@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.shared-gcc
|
|||||||
ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config
|
ENV PKG_CONFIG=x86_64-w64-mingw32.shared-pkg-config
|
||||||
ENV GOOS=windows
|
ENV GOOS=windows
|
||||||
ENV CGO_ENABLED=1
|
ENV CGO_ENABLED=1
|
||||||
|
ENV GOFLAGS=-buildvcs=false
|
||||||
|
@ -18,3 +18,4 @@ ENV CC=x86_64-w64-mingw32.static-gcc
|
|||||||
ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config
|
ENV PKG_CONFIG=x86_64-w64-mingw32.static-pkg-config
|
||||||
ENV GOOS=windows
|
ENV GOOS=windows
|
||||||
ENV CGO_ENABLED=1
|
ENV CGO_ENABLED=1
|
||||||
|
ENV GOFLAGS=-buildvcs=false
|
||||||
|
Loading…
Reference in New Issue
Block a user