Remove 'lib' prefix from the native library of the C# Windows DLL.
@@ -33,9 +33,20 @@ find "${MACOSX_X86_64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
find "${LINUX_X86_64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
+# Remove 'lib' prefix from the native library of the Windows DLL.
+find "${SCRIPT_DIR}/nuget/runtimes/" \
+ -name 'libtinyspline*.dll' \
+ -exec /bin/bash -c \
+ 'DIRNAME=$( dirname "${0}" ) && \
+ BASENAME=$( basename "${0}" ) && \
+ mv "${0}" "${DIRNAME}/${BASENAME#lib}"' {} \;
# See https://github.com/NuGet/Home/issues/5956
-find "${SCRIPT_DIR}/nuget/runtimes/" -name '*\%2B*' \
- -exec /bin/bash -c 'mv -u $0 ${0/\%2B\%2B/++}' {} \;
+find "${SCRIPT_DIR}/nuget/runtimes/" \
+ -name '*\%2B*' \
+ -exec /bin/bash -c \
+ 'DIRNAME=$( dirname "${0}" ) && \
+ BASENAME=$( basename "${0}" ) && \
+ mv "${0}" "${DIRNAME}/${BASENAME/\%2B\%2B/++}"' {} \;
NUPKG_NAME=$( find "${LINUX_X86_64}" -name "*.nupkg" -exec basename {} \; )
pushd ${NUPKG_TMP_DIR}
zip -r "${OUTPUT}/${NUPKG_NAME}" *
