Version 1.0.0, release build script

- version.go/version.txt, --version flag, version in the help title
- build.sh builds static binaries for macOS and Linux into ./bin
- make build/install inject version.txt, make dist runs build.sh
- README: binary downloads; development docs: release process

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
mikeandClaude Opus 5.5 committed 2026-10-22 13:29:39 +02:00
1 parent 156bb18c91
commit e5750ef24b
9 files changed
+162 -9

No files matched your search

+10 -4
View File
@@ -1,12 +1,14 @@
BIN := ghosttyconf
VERSION := $(shell cat version.txt)
LDFLAGS := -X main.Version=$(VERSION)
.PHONY: build install test schema screenshots clean
.PHONY: build install test schema screenshots dist clean
build:
go build -o $(BIN) .
go build -ldflags "$(LDFLAGS)" -o $(BIN) .
install:
go install .
go install -ldflags "$(LDFLAGS)" .
test:
go test ./...
@@ -20,5 +22,9 @@ schema:
screenshots:
./tools/screenshots.sh
# Release binaries for all platforms into ./bin (see build.sh).
dist:
./build.sh
clean:
rm -f $(BIN)
rm -rf $(BIN) bin