Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-07-09 21:42:08 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-07-09 21:42:08 +0300
commitfebf0aec8beb40d4e8c0886ca404ab1825542ab2 (patch)
tree9b5e3027ff6e42173f8138225722cbcd102ff413 /goreleaser-extended.yml
parenta4fad5be6be821e959d8ffec999080d9c8a74c84 (diff)
Build a fully static Windows extended binary
Diffstat (limited to 'goreleaser-extended.yml')
-rw-r--r--goreleaser-extended.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/goreleaser-extended.yml b/goreleaser-extended.yml
index 4564ac08b..b953b9e7a 100644
--- a/goreleaser-extended.yml
+++ b/goreleaser-extended.yml
@@ -1,11 +1,14 @@
project_name: hugo_extended
builds:
- 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:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
+ - CGO_LDFLAGS="-static"
flags:
- -tags
- extended