From ab31619745a1bd0ee4be664a3b69f8210c5c9941 Mon Sep 17 00:00:00 2001 From: Sebastian Marsching Date: Sat, 9 Dec 2017 15:02:57 +0100 Subject: [PATCH] Build MSI package when making a release. --- release-tool | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/release-tool b/release-tool index 10c6a14c3..8ad547468 100755 --- a/release-tool +++ b/release-tool @@ -609,9 +609,13 @@ build() { -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" $CMAKE_OPTIONS "$SRC_DIR" logInfo "Compiling and packaging sources..." - make $MAKE_OPTIONS package + make $MAKE_OPTIONS preinstall + # Call cpack directly instead of calling make package. + # This is important because we want to build the MSI when making a + # release. + cpack -G "NSIS;WIX;ZIP" - mv "./${APP_NAME}-${RELEASE_NAME}-"*.{exe,zip} ../ + mv "./${APP_NAME}-${RELEASE_NAME}-"*.{exe,msi,zip} ../ else mkdir -p "${OUTPUT_DIR}/bin-release"