Skip to content

MacOS precompiled tarballs need to be signed to run with Gatekeeper enabled, or Hugo won't run. #13448

Open
@akirch24

Description

@akirch24

In recent versions of MacOS, Apple has implemented a tool called Gatekeeper. It is now on by default. More info:
Apple MacOS Gatekeeper
With Gatekeeper enabled, unsigned software will not run. To resolve this Hugo will need to add signing/packaging to their build process for MacOS artifacts.

Steps to reproduce:

  1. go to Hugo downloads page: https://github.com/gohugoio/hugo/releases/tag/v0.144.2
  2. In Settings>Security Settings, confirm towards the bottom that Security>Allow Applications From: is App Store and Known Developers
  3. download Hugo for macOS
  4. untar hugo
  5. invoke Hugo with ./Hugo using any arguments or none at all
  6. MacOS Gatekeeper prevents Hugo from launching displaying the following dialog:
    Image

Steps to fix:

  1. get a developer ID and use Xcode to sign the application
  2. produce a dmg or pkg file. The tool to use here is usually pkgbuild, which has a manpage on MacOS.
  3. distribute the dmg or pkg file.

What version of Hugo are you using (hugo version)?

% ./hugo version
zsh: killed     ./Hugo version
% ls
LICENSE					README.md				hugo					hugo_0.144.2_darwin-universal.tar

Does this issue reproduce with the latest release?

As far as I can tell this is the latest release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions