mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Build a fully static Windows extended binary
This commit is contained in:
parent
a4fad5be6b
commit
febf0aec8b
1 changed files with 4 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
||||||
project_name: hugo_extended
|
project_name: hugo_extended
|
||||||
builds:
|
builds:
|
||||||
- binary: hugo
|
- binary: hugo
|
||||||
ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
|
ldflags:
|
||||||
|
- -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
|
||||||
|
- "-extldflags '-static'"
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=1
|
||||||
- CC=x86_64-w64-mingw32-gcc
|
- CC=x86_64-w64-mingw32-gcc
|
||||||
- CXX=x86_64-w64-mingw32-g++
|
- CXX=x86_64-w64-mingw32-g++
|
||||||
|
- CGO_LDFLAGS="-static"
|
||||||
flags:
|
flags:
|
||||||
- -tags
|
- -tags
|
||||||
- extended
|
- extended
|
||||||
|
|
Loading…
Reference in a new issue