How can i build a hugo extended binaries?

Hi everyone,

I use the following command to build my hugo binaries
go get -u -v

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


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

My script has matured quite a bit since then. Here’s today’s version:

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.

1 Like

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