aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-06 14:05:16 +0200
committersfan5 <sfan5@live.de>2022-05-06 14:08:45 +0200
commitfc4eda0f447f7799fb0d7933d816780375ce845b (patch)
tree450480de716fd9709e9ced6651014e03e49ae565 /scripts
parent401e769114ac752dd9273c3d037b67c5a6512c98 (diff)
downloadirrlicht-fc4eda0f447f7799fb0d7933d816780375ce845b.tar.xz
Properly strip windows binaries produced by CI
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci-build-mingw.sh6
1 files changed, 4 insertions, 2 deletions
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