Skip to content

Commit 762f200

Browse files
committed
Fix missing DLL problem, add guard for future updates
1 parent d872e61 commit 762f200

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ for os in "linux" "win"; do
5555
done
5656

5757
for lib in "libgcc_s_seh-1.dll" "libstdc++-6.dll" "libwinpthread-1.dll"; do
58-
for base in "/usr/x86_64-w64-mingw32/bin" "/usr/lib/gcc/x86_64-w64-mingw32/8.3-win32" "/usr/x86_64-w64-mingw32/lib"; do
58+
for base in "/usr/x86_64-w64-mingw32/bin" "/usr/lib/gcc/x86_64-w64-mingw32/10-win32" "/usr/x86_64-w64-mingw32/lib"; do
5959
if [ -e $base/$lib ]; then
6060
cp $base/$lib $HACKED_BASE/_build/win/$FOLDER_NAME
6161
fi
6262
done
63+
if [ ! -f $HACKED_BASE/_build/win/$FOLDER_NAME/$lib ]; then
64+
echo " FAIL: file $lib is nowhere found"
65+
fi
6366
done
6467

6568
echo "Creating packages..."

0 commit comments

Comments
 (0)