Skip to content

Commit 8f6b2ad

Browse files
committed
refactor(makefile): remove AI plugin related build logic
1 parent 6699bb1 commit 8f6b2ad

File tree

1 file changed

+4
-38
lines changed

1 file changed

+4
-38
lines changed

tools/make/run.mk

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
include tools/make/env.mk
66

77
ATEST_UI = console/atest-ui
8-
AI_PLUGIN_DIR := $(or $(AI_PLUGIN_SOURCE),../atest-ext-ai)
98

109
##@ Local runs & init env
1110

@@ -16,49 +15,16 @@ build-ai-plugin:
1615
mkdir -p bin; \
1716
curl -L "$(AI_PLUGIN_BINARY_URL)" | tar xz -C bin/ --strip-components=1; \
1817
echo "✅ AI plugin binary downloaded"; \
19-
elif [ -d "$(AI_PLUGIN_DIR)" ]; then \
20-
echo "🔨 Building AI plugin from source..."; \
21-
cd $(AI_PLUGIN_DIR) && make build; \
22-
mkdir -p bin; \
23-
cp $(AI_PLUGIN_DIR)/bin/atest-ext-ai bin/; \
24-
echo "✅ AI plugin built from source"; \
25-
else \
26-
echo "⚠️ AI plugin directory not found, skipping"; \
27-
fi
28-
29-
.PHONY: dev-build-ai-plugin
30-
dev-build-ai-plugin:
31-
@echo "🔧 Building AI plugin for development..."
32-
@if [ -d "$(AI_PLUGIN_DIR)" ]; then \
33-
cd $(AI_PLUGIN_DIR) && make build && cd - > /dev/null; \
34-
mkdir -p bin; \
35-
cp -f $(AI_PLUGIN_DIR)/bin/atest-ext-ai bin/atest-ext-ai; \
36-
if [ -f ~/.config/atest/bin/atest-ext-ai ]; then \
37-
mv ~/.config/atest/bin/atest-ext-ai ~/.config/atest/bin/atest-ext-ai.backup; \
38-
echo "✅ Backed up system version, now using development version"; \
39-
else \
40-
echo "ℹ️ No system version found, using development version"; \
41-
fi; \
4218
else \
43-
echo "❌ AI plugin directory not found"; \
44-
fi
45-
46-
.PHONY: dev-restore-ai-plugin
47-
dev-restore-ai-plugin:
48-
@echo "🔄 Restoring system AI plugin..."
49-
@if [ -f ~/.config/atest/bin/atest-ext-ai.backup ]; then \
50-
mv ~/.config/atest/bin/atest-ext-ai.backup ~/.config/atest/bin/atest-ext-ai; \
51-
echo "✅ System version restored"; \
52-
else \
53-
echo "ℹ️ No backup found to restore"; \
19+
echo "⚠️ AI_PLUGIN_BINARY_URL not set, skipping AI plugin download"; \
5420
fi
5521

5622
.PHONY: dev-run-server
57-
dev-run-server: ## Run server in development mode with latest AI plugin
58-
dev-run-server: build-ui dev-build-ai-plugin dev-run-backend
23+
dev-run-server: ## Run server in development mode
24+
dev-run-server: build-ui dev-run-backend
5925

6026
dev-run-backend:
61-
PATH="$(shell pwd)/bin:$$PATH" go run . server --local-storage 'bin/*.yaml' --console-path ${ATEST_UI}/dist \
27+
go run . server --local-storage 'bin/*.yaml' --console-path ${ATEST_UI}/dist \
6228
--extension-registry ghcr.io --download-timeout 10m
6329

6430
.PHONY: run-server

0 commit comments

Comments
 (0)