refactor: handlers

This commit is contained in:
Del Wang
2026-01-02 15:16:31 +08:00
parent 4ed8d3dca9
commit 6f55021651
13 changed files with 458 additions and 252 deletions
+5 -2
View File
@@ -1,13 +1,16 @@
build-server:
clear && cargo build --release --bin server --features app
cargo build --release --bin server --features app
build-client:
clear && docker run --rm -v $(shell pwd):/app idootop/open-xiaoai-runtime:oh2p \
docker run --rm -v $(shell pwd):/app idootop/open-xiaoai-runtime:oh2p \
cargo build --target armv7-unknown-linux-gnueabihf --release --bin client --features app
run-server:
target/release/server
test:
clear && make build-client && make deploy && make build-server && make run-server
# 部署到小爱音箱(调试自用)
deploy:
dd if=target/armv7-unknown-linux-gnueabihf/release/client \