refactor: 调整模块位置

This commit is contained in:
Del Wang
2026-01-02 10:22:16 +08:00
parent 4d459afd28
commit ef28121f5d
15 changed files with 72 additions and 14 deletions
+12 -6
View File
@@ -1,10 +1,16 @@
build:
build-server:
cargo build --release --bin server --features app
build-client:
docker run --rm -v $(shell pwd):/app idootop/open-xiaoai-runtime:oh2p \
cargo build --target armv7-unknown-linux-gnueabihf --release
cargo build --target armv7-unknown-linux-gnueabihf --release --bin client --features app
run-server:
cargo run --bin server --features app
# 部署到小爱音箱(调试自用)
deploy:
dd if=target/armv7-unknown-linux-gnueabihf/release/xiao \
| sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.153 "dd of=/data/xiao"
dd if=target/armv7-unknown-linux-gnueabihf/release/xiao \
| sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.235 "dd of=/data/xiao"
dd if=target/armv7-unknown-linux-gnueabihf/release/client \
| sshpass -p open-xiaoai ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.153 "dd of=/data/client"
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"