From 9fbfd866ceff97ed42ecf01057582012a466ba56 Mon Sep 17 00:00:00 2001 From: SpiritGun91 Date: Tue, 12 May 2026 23:31:01 -0400 Subject: [PATCH] Document source build/install flow and make build-admin idempotent --- Makefile | 3 ++- README.md | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f6319756..8a3a87b6 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,8 @@ build-admin: cd admin && \ yarn install --frozen-lockfile && \ yarn run export && \ - mv dist ../cmd/hetty/admin + rm -rf ../cmd/hetty/admin && \ + cp -R dist ../cmd/hetty/admin .PHONY: clean clean: diff --git a/README.md b/README.md index 9cf40841..7d3c2c05 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,21 @@ scoop install hettysoft/hetty Alternatively, you can [download the latest release from GitHub](https://github.com/dstotijn/hetty/releases/latest) for your OS and -architecture, and move the binary to a directory in your `$PATH`. If your OS is -not available for one of the package managers or not listed in the GitHub -releases, you can compile from source _(link coming soon)_. +architecture, and move the binary to a directory in your `$PATH`. + +If you want to compile from source, first build the admin frontend and then +build the Go binary: + +```sh +make build-admin +go build ./cmd/hetty +``` + +To install the binary into your `$PATH`, run: + +```sh +go install ./cmd/hetty +``` #### Docker