feat: 立体声 client 构建

This commit is contained in:
Del Wang
2025-12-29 11:11:50 +08:00
parent a6fe02ace5
commit e3c8bbb347
9 changed files with 1303 additions and 36 deletions
+9 -22
View File
@@ -6,28 +6,15 @@ set -e
PROXY="http://host.docker.internal:7890"
# 1. 构建编译环境镜像
# echo "Building Docker image with proxy..."
# docker build \
# --build-arg http_proxy=$PROXY \
# --build-arg https_proxy=$PROXY \
# -t open-xiaoai-runtime .
echo "Building Docker image with proxy..."
docker build \
--build-arg http_proxy=$PROXY \
--build-arg https_proxy=$PROXY \
-t open-xiaoai-runtime .
# 2. 编译 hello world demo
echo "Compiling hello demo..."
docker run --rm -v $(pwd)/../hello:/app/hello open-xiaoai-runtime \
cargo build --manifest-path hello/Cargo.toml --target armv7-unknown-linux-gnueabihf --release
# 3. 运行编译出的二进制文件 (通过 QEMU 模拟)
# echo "Running compiled binary via QEMU..."
# docker run --rm -v $(pwd)/../hello/target/armv7-unknown-linux-gnueabihf/release/hello:/app/hello open-xiaoai-runtime \
# 2. 运行编译出的二进制文件 (通过 QEMU 模拟)
# docker run --rm -v $(pwd)/hello:/app/hello open-xiaoai-runtime \
# run /app/hello
# 4. 交互模式运行
# docker run --rm -it --privileged open-xiaoai-runtime run
# 5. 上传二进制文件到小爱音箱
# dd if=apps/hello/target/armv7-unknown-linux-gnueabihf/release/hello \
# | ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.235 "dd of=/data/hello"
# dd if=apps/hello/target/armv7-unknown-linux-gnueabihf/release/hello \
# | ssh -o HostKeyAlgorithms=+ssh-rsa root@192.168.31.153 "dd of=/data/hello"
# 3. 交互模式运行
# docker run --rm -it --privileged open-xiaoai-runtime run