2026-01-02 10:22:16 +08:00
|
|
|
build-server:
|
2026-01-05 20:13:25 +08:00
|
|
|
cargo build --release --bin server
|
2026-01-02 10:22:16 +08:00
|
|
|
|
|
|
|
|
build-client:
|
2026-01-02 15:16:31 +08:00
|
|
|
docker run --rm -v $(shell pwd):/app idootop/open-xiaoai-runtime:oh2p \
|
2026-01-05 20:13:25 +08:00
|
|
|
cargo build --target armv7-unknown-linux-gnueabihf --release --bin client
|
2026-01-02 10:22:16 +08:00
|
|
|
|
|
|
|
|
run-server:
|
2026-01-02 13:04:19 +08:00
|
|
|
target/release/server
|
2026-01-02 09:59:29 +08:00
|
|
|
|
2026-01-02 15:16:31 +08:00
|
|
|
test:
|
|
|
|
|
clear && make build-client && make deploy && make build-server && make run-server
|
|
|
|
|
|
2026-01-02 09:59:29 +08:00
|
|
|
# 部署到小爱音箱(调试自用)
|
|
|
|
|
deploy:
|
2026-01-02 10:22:16 +08:00
|
|
|
dd if=target/armv7-unknown-linux-gnueabihf/release/client \
|
|
|
|
|
| sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.235 "dd of=/data/client"
|