M6: serve and export modes, packaging

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
lucioandClaude Opus 5.5 committed 2026-11-04 04:58:48 -08:00
1 parent 45105d292f
commit 00ee2a6d12
29 files changed
+1294 -75

No files matched your search

+16 -7
View File
@@ -1,14 +1,23 @@
GO ?= go
BIN := bin/luphoto
GO ?= go
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -s -w -X main.version=$(VERSION)
BIN := bin/luphoto
.PHONY: build deb clean
.PHONY: web build dist deb clean
web:
npm --prefix web ci
npm --prefix web run build
build:
$(GO) build -trimpath -o $(BIN) ./cmd/luphoto
$(GO) build -trimpath -ldflags "$(LDFLAGS)" -o $(BIN) ./cmd/luphoto
dist:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -trimpath -ldflags "$(LDFLAGS)" -o dist/linux_amd64/luphoto ./cmd/luphoto
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(GO) build -trimpath -ldflags "$(LDFLAGS)" -o dist/linux_arm64/luphoto ./cmd/luphoto
deb:
@echo "deb packaging arrives in milestone M6" >&2
@exit 1
scripts/package.sh
clean:
rm -rf bin
rm -rf bin dist