Files
open-xiaoai/packages/client-v2/Makefile
T
2026-01-02 13:04:19 +08:00

14 lines
509 B
Makefile

build-server:
clear && cargo build --release --bin server --features app
build-client:
clear && 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
# 部署到小爱音箱(调试自用)
deploy:
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"