Skip to content

Commit 32902c8

Browse files
committed
Fix compatibility with linux
1 parent e2a0cc8 commit 32902c8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/copy_onesdk_src.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ fi
1919

2020
# 使用绝对路径进行拷贝操作
2121
for example_dir in "onesdk_esp32" "onesdk_esp32_audio"; do
22-
cp -rv "$ONESDK_ROOT_DIR/build/output/" "$ONESDK_ROOT_DIR/examples/${example_dir}/"
22+
mkdir -p "$ONESDK_ROOT_DIR/examples/${example_dir}/components/onesdk"
23+
24+
cp -rv "$ONESDK_ROOT_DIR/build/output/components" "$ONESDK_ROOT_DIR/examples/${example_dir}/"
2325
cp -v "$ONESDK_ROOT_DIR/components_onesdk.txt" "$ONESDK_ROOT_DIR/examples/${example_dir}/components/onesdk/CMakeLists.txt"
2426
# cp -v "$ONESDK_ROOT_DIR/libwebsockets_cmakelists.txt" "$ONESDK_ROOT_DIR/examples/${example_dir}/libwebsockets/CMakeLists.txt"
25-
done
27+
done

0 commit comments

Comments
 (0)