-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
229 lines (173 loc) · 6.66 KB
/
Copy pathMakefile
File metadata and controls
229 lines (173 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
SHELL := /bin/bash
CONTROL := bash tools/zneondrive-control.sh
UE_TOOL := bash tools/ue-linux.sh
CLIENT_PACKAGE ?=
SERVER_PACKAGE ?=
SERVICE ?=
CONFIRM_RESET ?=
LOG_TAIL ?= 200
.PHONY: help doctor ue-detect env-init deps-server deps-client control-panel \
validate-design validate-docs validate-runtime validate-control check-json lint \
test-reference go-test go-integration go-vet go-build test build security ci \
server-install server-up server-down server-restart server-status server-health server-logs server-reset \
runtime-up runtime-down db-shell redis-cli \
client-generate client-build client-package-linux editor-build client-install client-play client-doctor \
game-server-build game-server-package-linux package-all-linux game-server-install game-server-start game-server-stop game-server-status game-server-logs \
full-install full-up full-down status clean
help:
@printf '%s\n' \
'PROJECT: NEON DRIVE — Make control surface' \
'' \
'Bootstrap / control' \
' make doctor Check host/runtime prerequisites' \
' make ue-detect Search common paths for usable UE 5.8 source/installed builds' \
' make env-init Create .env + unique local server key' \
' make deps-server Install base Ubuntu/Debian server dependencies' \
' make deps-client Install base Linux client/dev dependencies (not UE itself)' \
' make control-panel Open interactive operator menu' \
'' \
'Service plane' \
' make server-install Pull/build/start PostgreSQL + Redis + Go API' \
' make server-up|server-down|server-restart' \
' make server-status|server-health' \
' make server-logs [SERVICE=game-api]' \
' make db-shell | make redis-cli' \
' CONFIRM_RESET=YES make server-reset' \
'' \
'Player client' \
' make client-install CLIENT_PACKAGE=/path/client.zip' \
' make client-generate Generate project files for UE 5.8 source or installed builds' \
' make client-build Build NeonDriveClient with UE_ROOT on Linux' \
' make client-package-linux Cook/stage/archive a Linux player package' \
' make client-play Launch installed client; ZNEON_GAME_API_URL may override API' \
' make client-doctor Windows/Linux client guidance and host check' \
'' \
'Dedicated gameplay server' \
' make game-server-package-linux Cook/stage/archive Linux dedicated server' \
' make package-all-linux Package Linux client + dedicated server' \
' make game-server-install SERVER_PACKAGE=/path/server.tar.gz' \
' make game-server-start|game-server-stop|game-server-status|game-server-logs' \
'' \
'Full stack' \
' make full-install CLIENT_PACKAGE=... SERVER_PACKAGE=...' \
' make full-up | make full-down | make status' \
'' \
'Quality' \
' make validate-design validate-docs validate-runtime validate-control' \
' make go-test go-integration go-vet go-build test build security ci'
doctor:
@$(CONTROL) doctor
ue-detect:
@$(UE_TOOL) detect
env-init:
@$(CONTROL) env-init
deps-server:
@$(CONTROL) deps-server
deps-client:
@$(CONTROL) deps-client
control-panel:
@$(CONTROL) control-panel
validate-design:
python3 tools/validate_design.py
validate-docs:
python3 tools/validate_docs.py
validate-runtime:
python3 tools/validate_runtime_v0_4.py
python3 tools/validate_runtime_v0_5.py
python3 tools/validate_runtime_v0_6.py
python3 tools/validate_unreal_server_observability.py
validate-control:
python3 tools/validate_control_surface.py
python3 tools/validate_unreal_evidence_workflow.py
python3 tools/validate_unreal_package_evidence_workflow.py
bash -n tools/zneondrive-control.sh
bash -n tools/ue-linux.sh
check-json:
python3 -c 'import json,pathlib; [json.loads(p.read_text(encoding="utf-8")) for p in pathlib.Path("design").rglob("*.json")]; json.loads(pathlib.Path("game/NeonDrive.uproject").read_text(encoding="utf-8")); print("JSON OK")'
lint: check-json validate-design validate-docs validate-runtime validate-control
test-reference:
PYTHONPATH=src python3 -m unittest discover -s tests -v
go-test:
cd services/game-api && go test ./...
go-integration:
@test -n "$${TEST_DATABASE_URL:-}" || { echo 'TEST_DATABASE_URL is required'; exit 2; }
cd services/game-api && go test -tags=integration ./...
go-vet:
cd services/game-api && go vet ./...
go-build:
cd services/game-api && go build -trimpath ./cmd/server
test: lint test-reference go-test
build: go-build
python3 -m compileall -q src
@echo 'Reference + Go service build complete. Unreal builds require UE_ROOT / the self-hosted UE 5.8 runner.'
security:
@echo 'Run repository CodeQL/Dependency Review workflows for authoritative scanner evidence.'
@echo 'Runtime transport, anti-cheat, HA/DR and production security gates remain evidence-gated.'
server-install:
@$(CONTROL) server-install
server-up:
@$(CONTROL) server-up
server-down:
@$(CONTROL) server-down
server-restart:
@$(CONTROL) server-restart
server-status:
@$(CONTROL) server-status
server-health:
@$(CONTROL) server-health
server-logs:
@LOG_TAIL=$(LOG_TAIL) $(CONTROL) server-logs $(SERVICE)
server-reset:
@CONFIRM_RESET=$(CONFIRM_RESET) $(CONTROL) server-reset
runtime-up: server-up
runtime-down: server-down
db-shell:
@$(CONTROL) db-shell
redis-cli:
@$(CONTROL) redis-cli
client-generate:
@$(UE_TOOL) generate
client-build:
@$(UE_TOOL) build-target NeonDriveClient
client-package-linux:
@$(UE_TOOL) package-client
editor-build:
@$(UE_TOOL) build-target NeonDriveEditor
client-install:
@CLIENT_PACKAGE="$(CLIENT_PACKAGE)" $(CONTROL) client-install "$(CLIENT_PACKAGE)"
client-play:
@$(CONTROL) client-play
client-doctor:
ifeq ($(OS),Windows_NT)
powershell -ExecutionPolicy Bypass -File tools/install-client.ps1 -Mode doctor
else
@$(CONTROL) client-doctor
endif
game-server-build:
@$(UE_TOOL) build-target NeonDriveServer
game-server-package-linux:
@$(UE_TOOL) package-server
package-all-linux:
@$(UE_TOOL) package-all
game-server-install:
@SERVER_PACKAGE="$(SERVER_PACKAGE)" $(CONTROL) game-server-install "$(SERVER_PACKAGE)"
game-server-start:
@$(CONTROL) game-server-start
game-server-stop:
@$(CONTROL) game-server-stop
game-server-status:
@$(CONTROL) game-server-status
game-server-logs:
@LOG_TAIL=$(LOG_TAIL) $(CONTROL) game-server-logs
full-install:
@CLIENT_PACKAGE="$(CLIENT_PACKAGE)" SERVER_PACKAGE="$(SERVER_PACKAGE)" $(CONTROL) full-install "$(CLIENT_PACKAGE)"
full-up:
@$(CONTROL) full-up
full-down:
@$(CONTROL) full-down
status:
@$(CONTROL) status
clean:
rm -rf .runtime
@echo 'Removed local control-panel runtime metadata only. Compose volumes and packaged builds were preserved.'
ci: lint test-reference go-test go-vet go-build