Go backend (chi, SQLite) with an embedded React/TypeScript UI that finds songs present in both a host and a slave music library and replaces the slave copy with a hardlink to the host copy. - Path-first matching with format/title/album-folder fallbacks - Auto-linking of byte-identical files, re-verified with cmp before linking - Manual review with ffprobe quality comparison, downgrade guard and promote-to-host override - Build mode to populate an empty slave library from the host - Dry run by default, atomic stage+rename replacement, quarantine with retention, undo, path confinement and authenticated UI - Dockerfile and compose file for Unraid Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
346 B
Makefile
19 lines
346 B
Makefile
.PHONY: build web test run docker
|
|
|
|
build: web
|
|
CGO_ENABLED=0 go build -trimpath -o playlink ./cmd/playlink
|
|
|
|
web:
|
|
cd web && npm ci && npm run build
|
|
|
|
test:
|
|
go vet ./...
|
|
go test -race ./...
|
|
cd web && npx tsc -b
|
|
|
|
run: build
|
|
PLAYLINK_DATA_DIR=./config PLAYLINK_ALLOWED_ROOTS=$(PWD)/testdata ./playlink
|
|
|
|
docker:
|
|
docker build -t playlink:latest .
|