Updated windows build script because of argument list overflow in shell script (shorter paths)

This commit is contained in:
Matthias Koefferlein 2019-11-13 21:11:40 +01:00
parent 897ccb12bf
commit f768d012e5
1 changed files with 9 additions and 5 deletions

View File

@ -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