fix: 优化打包后的目录结构,便于引入
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user