mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Build a fully static Windows extended binary
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user