Skip to content

Commit 4bb9071

Browse files
committed
Update makeserver.sh
1 parent ca1cf61 commit 4bb9071

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

scripts/makeserver.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ fi
4444
echo "*** ${project} build succeeded. Packaging..."
4545

4646
if [ -d "$outputdir" ]; then
47-
# Remove these, which are getting incorrectly bundled
48-
# See https://github.com/Webreaper/Damselfly/issues/546
49-
rm onnxruntime_providers*.dll
50-
5147
echo "*** Contents of ${outputdir}:"
5248

5349
ls -l $outputdir
@@ -56,7 +52,18 @@ if [ -d "$outputdir" ]; then
5652
mkdir $serverdist
5753

5854
cd $outputdir
55+
56+
# Hack to get the libcvextern.so into the linux build.
57+
case $PLATFORM in
58+
linux | max | m1)
59+
# Remove these, which are getting incorrectly bundled
60+
# See https://github.com/Webreaper/Damselfly/issues/546
61+
echo "Removing invalid windows ONNX provider DLLs..."
62+
rm -v ${outputdir}/onnxruntime_providers*.dll
63+
esac
64+
5965
zip $zipname . -rx "*.pdb"
66+
6067
echo "*** Build complete."
6168
else
6269
echo "*** ERROR: Output folder ${outputdir} did not exist."

0 commit comments

Comments
 (0)