Skip to content

Commit f6aa272

Browse files
committed
ci: make sure windows artifacts have imageflow.dll, but not *.sh
1 parent 235ccf9 commit f6aa272

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

ci/pack_artifacts.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,22 @@ ls bindings/headers/imageflow_default.h | cat
9696
echo "--------------------------------"
9797
cp -R "./${REL_BINARIES_DIR}"libimageflow* ./artifacts/staging/ || true
9898
cp -R "./${REL_BINARIES_DIR}"imageflow_* ./artifacts/staging/
99+
cp -R "./${REL_BINARIES_DIR}"${LIBIMAGEFLOW_DYNAMIC} ./artifacts/staging/
99100
# tool should always exist
100101
cp -R "./${REL_BINARIES_DIR}"${IMAGEFLOW_TOOL} ./artifacts/staging/
101102
cp bindings/headers/*.h ./artifacts/staging/headers/
102103
cp bindings/headers/imageflow_default.h ./artifacts/staging/imageflow.h
103104

104-
# Verify and copy installation scripts
105-
for script in "./ci/packaging_extras/"{install,uninstall}.sh; do
106-
if [ ! -f "$script" ]; then
107-
echo "Error: Required installation script not found: $script"
108-
exit 1
109-
fi
110-
cp "$script" ./artifacts/staging/
111-
done
105+
# Verify and copy installation scripts, IF LIBIMAGEFLOW_DYNAMIC!=imageflow.dll
106+
if [ "${LIBIMAGEFLOW_DYNAMIC}" != "imageflow.dll" ]; then
107+
for script in "./ci/packaging_extras/"{install,uninstall}.sh; do
108+
if [ ! -f "$script" ]; then
109+
echo "Error: Required installation script not found: $script"
110+
exit 1
111+
fi
112+
cp "$script" ./artifacts/staging/
113+
done
114+
fi
112115

113116
# Clean up unnecessary files
114117
rm ./artifacts/staging/*.{o,d,rlib} 2>/dev/null || true

0 commit comments

Comments
 (0)