feat: 立体声 client 构建
This commit is contained in:
+9
-22
@@ -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
|
||||
Reference in New Issue
Block a user