diff options
author | Sebastian Marsching <sebastian-git-2016@marsching.com> | 2017-12-09 17:02:57 +0300 |
---|---|---|
committer | Sebastian Marsching <sebastian-git-2016@marsching.com> | 2017-12-09 17:02:57 +0300 |
commit | ab31619745a1bd0ee4be664a3b69f8210c5c9941 (patch) | |
tree | bacd0ed14d746e40fbfef09c0443fbf0a079950e /release-tool | |
parent | 1ce77e6f1583d8dad2b8f49c4787e99794a7ef8d (diff) |
Build MSI package when making a release.
Diffstat (limited to 'release-tool')
-rwxr-xr-x | release-tool | 8 |
1 files 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" |