How can i build a hugo extended binaries?


#1

Hi everyone,

I use the following command to build my hugo binaries
go get -u -v github.com/gohugoio/hugo

Do you know how I can build an extended hugo binary ?

Thx


#2

@kaushalmodi posted a Build Script for a Hugo Extended binary, a while ago, but I don’t have the time to look for it know, maybe he can share.


#3

My script has matured quite a bit since then. Here’s today’s version: https://ptpb.pw/tuoM/bash

For anyone using it:

  • Comment out line 121 that has patch_maybe.
  • Update the install path on line 150 to your preference.
  • And ignore the last echo about “stow_it”.

And you should be all good to go, at least for GNU/Linux type systems.


#4

I’ve got a Docker container here built using Alpine and musl:

https://hub.docker.com/r/equalos/hugo/