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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user