fix: resolve build — move main.go to root, fix Makefile wails path, update Wails to v2.12.0

- Moved main.go from cmd/app/ to project root (Wails convention)
- Makefile now resolves wails binary via GOPATH/bin fallback
- Updated wails/v2 dependency from v2.9.2 to v2.12.0
- Fixed preferences round-trip bug (store as single JSON blob)
- Fixed import strategy test (needs non-empty profile data)
This commit is contained in:
2026-04-15 00:00:00 +01:00
parent 5bff1d9f3e
commit 9fda602b82
17 changed files with 1701 additions and 82 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
.PHONY: all build dev clean test test-cover lint install deps frontend-deps run package help
# Resolve the Wails binary. Prefer wails on PATH; fall back to GOPATH/bin.
WAILS := $(or $(shell which wails 2>/dev/null),$(shell go env GOPATH)/bin/wails)
# Default target
all: build
@@ -13,11 +16,11 @@ frontend-deps:
# Development mode with hot reload
dev: deps
wails dev
$(WAILS) dev
# Production build
build: deps
wails build
$(WAILS) build
# Run tests
test: