From f768d012e5f11445c71295045ebe349907203151 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 13 Nov 2019 21:11:40 +0100 Subject: [PATCH] Updated windows build script because of argument list overflow in shell script (shorter paths) --- scripts/deploy-win-mingw.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/deploy-win-mingw.sh b/scripts/deploy-win-mingw.sh index b99e79110..419a12572 100644 --- a/scripts/deploy-win-mingw.sh +++ b/scripts/deploy-win-mingw.sh @@ -212,7 +212,9 @@ echo ']' >>$target/.python-paths.txt # ---------------------------------------------------------- # Binary dependencies -new_libs=$(find $target -name "*.dll" -or -name "*.so") +pushd $target + +new_libs=$(find . -name "*.dll" -or -name "*.so") while [ "$new_libs" != "" ]; do @@ -223,15 +225,17 @@ while [ "$new_libs" != "" ]; do new_libs="" for l in $libs; do - if [ -e $mingw_inst/bin/$l ] && ! [ -e $target/$l ]; then - echo "Copying binary installation partial $mingw_inst/bin/$l -> $target/$l .." - cp $mingw_inst/bin/$l $target/$l - new_libs="$new_libs $target/$l" + if [ -e $mingw_inst/bin/$l ] && ! [ -e $l ]; then + echo "Copying binary installation partial $mingw_inst/bin/$l -> $$l .." + cp $mingw_inst/bin/$l $l + new_libs="$new_libs $l" fi done done +popd + # ---------------------------------------------------------- # Run NSIS