mirror of
https://github.com/luxfi/ai.git
synced 2026-10-30 17:02:43 +00:00
- Rename desktop app from lux-ai-desktop to lux-desktop - Add comprehensive CI workflow (pre-checks, unit tests, integration, security) - Add release workflow with multi-platform binaries and Docker - Add Dockerfile for containerized deployment - Update README with Q-Chain integration and cross-network architecture - Remove old go.yml in favor of ci.yml
48 lines
771 B
Makefile
48 lines
771 B
Makefile
.PHONY: all build build-desktop clean test dev install fmt lint
|
|
|
|
VERSION := 0.1.0
|
|
BUILD_DIR := ./bin
|
|
|
|
all: build
|
|
|
|
# Build lux-ai
|
|
build:
|
|
@echo "Building lux-ai..."
|
|
go build -o $(BUILD_DIR)/lux-ai ./cmd/lux-ai
|
|
|
|
# Build lux-desktop
|
|
build-desktop:
|
|
@echo "Building lux-desktop..."
|
|
cd desktop && pnpm install && pnpm tauri:build
|
|
|
|
# Development mode for desktop
|
|
dev-desktop:
|
|
cd desktop && pnpm install && pnpm tauri:dev
|
|
|
|
# Run lux-ai
|
|
run: build
|
|
$(BUILD_DIR)/lux-ai -port 9090
|
|
|
|
# Install dependencies
|
|
install:
|
|
go mod tidy
|
|
cd desktop && pnpm install
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|
|
rm -rf desktop/dist
|
|
rm -rf desktop/src-tauri/target
|
|
|
|
# Run tests
|
|
test:
|
|
go test -v ./...
|
|
|
|
# Format code
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
# Lint code
|
|
lint:
|
|
golangci-lint run ./...
|