fix: use go env GOBIN for install target instead of hardcoded path

This commit is contained in:
RenovZ 2026-05-07 13:41:18 +08:00
parent 22c0fd3571
commit f0ff001e62

View file

@ -15,7 +15,7 @@ clean:
rm -rf bin
install: build
install -m 0755 bin/ocgo $(HOME)/go/bin/ocgo
install -m 0755 bin/ocgo $$(go env GOBIN)/ocgo
release:
@[ -n "$(TAG)" ] || (echo "Usage: make release TAG=v0.1.0" && exit 1)