fix: 优化打包后的目录结构,便于引入

This commit is contained in:
2026-07-26 14:44:35 +08:00
parent 0d06f797f8
commit f5cb361ffe
4 changed files with 73 additions and 7 deletions
+1 -7
View File
@@ -48,13 +48,7 @@ jobs:
[ "$testing" = "ON" ] && ctest --test-dir "build-$name" --output-on-failure
pkg="datarouter-$name"
mkdir -p "dist/$pkg"
for f in datarouter.h datarouter_config_template.h LICENSE README.md; do
if [ -f "$f" ]; then cp "$f" "dist/$pkg/"; fi
done
for f in libDataRouter.a libDataRouter.so libDataRouter.dll libDataRouter.dll.a example example.exe; do
if [ -f "build-$name/$f" ]; then cp "build-$name/$f" "dist/$pkg/"; fi
done
cmake --install "build-$name" --prefix "dist/$pkg"
done
- name: Create release & upload assets