Dynamically download ONNX libraries from microshit's website.

This commit is contained in:
2025-12-19 02:17:14 +00:00
parent 02169677a9
commit 48e54a6773
6 changed files with 123 additions and 6 deletions
+7 -3
View File
@@ -14,12 +14,16 @@ GOARCH ?= $(shell go env GOARCH)
export CGO_ENABLED=1
BUILD_TAGS := -tags "fts5"
.PHONY: all build clean test install lint hooks worker mcp stop-worker start-worker restart-worker dashboard website dev-website
.PHONY: all build clean test install lint hooks worker mcp stop-worker start-worker restart-worker dashboard website dev-website setup-libs
all: build
# Download ONNX runtime libraries (all platforms for local dev, skips if present)
setup-libs:
@./scripts/download-onnx-libs.sh all
# Build all binaries
build: dashboard worker hooks mcp
build: setup-libs dashboard worker hooks mcp
# Build Vue dashboard
dashboard:
@@ -154,7 +158,7 @@ uninstall: stop-worker
@echo "Uninstallation complete!"
# Run tests
test:
test: setup-libs
go test -v -race ./...
# Run tests with coverage