Skip to content

Commit e0151c5

Browse files
authored
Revert "Consistent with the configuration in the packaged cmake (#26104)"
This reverts commit e824331.
1 parent a83a158 commit e0151c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/ci_build/github/linux/copy_strip_binary.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ EXIT_CODE=1
1818
uname -a
1919
cd "$BINARY_DIR"
2020
mv installed/usr/local $ARTIFACT_NAME
21+
mv $ARTIFACT_NAME/include/onnxruntime/* $ARTIFACT_NAME/include
22+
rmdir $ARTIFACT_NAME/include/onnxruntime
2123
# Do not ship onnx_test_runner
2224
rm -rf $ARTIFACT_NAME/bin
2325
echo "Copy debug symbols in a separate file and strip the original binary."
@@ -27,6 +29,9 @@ then
2729
strip -S $BINARY_DIR/$ARTIFACT_NAME/lib/$LIB_NAME
2830
# copy the CoreML EP header for macOS build (libs with .dylib ext)
2931
cp $SOURCE_DIR/include/onnxruntime/core/providers/coreml/coreml_provider_factory.h $BINARY_DIR/$ARTIFACT_NAME/include
32+
else
33+
# Linux
34+
mv $ARTIFACT_NAME/lib64 $ARTIFACT_NAME/lib
3035
fi
3136

3237
# copy the README, licence and TPN

0 commit comments

Comments
 (0)