X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=scripts%2Fci-build-mingw.sh;h=8173aa64bd29f91803192974ce843e16918b92f3;hb=d6716ec31b7399517655403d8963b7632bbbf6b3;hp=e925c3942eb87153b44d1546cf1082f15e52a2c5;hpb=d3132e0731ec2e08e47b6a62eac96bfbb98a3124;p=irrlicht.git diff --git a/scripts/ci-build-mingw.sh b/scripts/ci-build-mingw.sh index e925c39..8173aa6 100755 --- a/scripts/ci-build-mingw.sh +++ b/scripts/ci-build-mingw.sh @@ -34,15 +34,17 @@ tmp=( -DZLIB_LIBRARY=$libs/zlib/lib/libz.dll.a \ -DZLIB_INCLUDE_DIR=$libs/zlib/include ) -[ "$1" = "package" ] && tmp+=(-DCMAKE_EXE_LINKER_FLAGS="-s") cmake . "${tmp[@]}" make -j$(nproc) if [ "$1" = "package" ]; then make DESTDIR=$PWD/_install install + # strip library + "${CXX%-*}-strip" --strip-unneeded _install/usr/local/lib/*.dll # bundle the DLLs that are specific to Irrlicht (kind of a hack) cp -p $libs/*/bin/lib{jpeg,png}*.dll _install/usr/local/lib/ - (cd _install/usr/local; zip -9r "$OLDPWD"/irrlicht-windows.zip -- *) + # create a ZIP + (cd _install/usr/local; zip -9r "$OLDPWD"/irrlicht-$variant.zip -- *) fi exit 0