shithub: hugo

Download patch

ref: febf0aec8beb40d4e8c0886ca404ab1825542ab2
parent: a4fad5be6be821e959d8ffec999080d9c8a74c84
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Jul 9 16:42:08 EDT 2018

Build a fully static Windows extended binary

--- 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