refine whatsapp bridge defaults and webui polish

This commit is contained in:
lpf
2026-03-10 12:07:56 +08:00
parent 8a6a2755de
commit c7b159d2ed
29 changed files with 1389 additions and 432 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: all build build-linux-slim build-all build-webui package-all install install-win uninstall clean help test install-bootstrap-docs sync-embed-workspace sync-embed-workspace-base sync-embed-webui cleanup-embed-workspace test-only clean-test-artifacts dev
.PHONY: all build build-linux-slim build-all build-webui package-all install install-win uninstall clean help test test-docker install-bootstrap-docs sync-embed-workspace sync-embed-workspace-base sync-embed-webui cleanup-embed-workspace test-only clean-test-artifacts dev
# Build variables
BINARY_NAME=clawgo
@@ -324,12 +324,15 @@ clean:
@rm -rf $(BUILD_DIR)
@echo "Clean complete"
## test-only: Run tests without leaving build artifacts (cleans embed workspace and test cache)
test-only: sync-embed-workspace
## test: Run Go tests without leaving build artifacts (cleans embed workspace and test cache)
test: sync-embed-workspace
@echo "Running tests..."
@set -e; trap '$(MAKE) cleanup-embed-workspace clean-test-artifacts' EXIT; \
$(GO) test ./...
## test-only: Backward-compatible alias for Go tests
test-only: test
## clean-test-artifacts: Remove test caches/artifacts generated by go test
clean-test-artifacts:
@$(GO) clean -testcache
@@ -364,8 +367,8 @@ dev: sync-embed-workspace
echo " Args: $(DEV_ARGS)"; \
CLAWGO_CONFIG="$(DEV_CONFIG)" $(GO) run $(GOFLAGS) ./$(CMD_DIR) $(DEV_ARGS)
## test: Build and compile-check in Docker (Dockerfile.test)
test: sync-embed-workspace
## test-docker: Build and compile-check in Docker (Dockerfile.test)
test-docker: sync-embed-workspace
@echo "Running Docker compile test..."
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
docker build -f Dockerfile.test -t clawgo:test .