From: Kevin Ottens Date: Thu, 14 Jan 2021 19:20:59 +0000 (+0100) Subject: Integrate the version suffix to the MSI filename X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~421^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=576a25161b0408804a3c498126486cbbdeb86e84;p=nextcloud-desktop.git Integrate the version suffix to the MSI filename This should be enough to reinstate the "-daily" marker in the filename for daily builds. Signed-off-by: Kevin Ottens --- diff --git a/admin/win/msi/CMakeLists.txt b/admin/win/msi/CMakeLists.txt index 8d7597cb3..a51aacd8d 100644 --- a/admin/win/msi/CMakeLists.txt +++ b/admin/win/msi/CMakeLists.txt @@ -8,7 +8,13 @@ string(SUBSTRING ${GIT_SHA1} 0 7 GIT_REVISION) set(VERSION "${MIRALL_VERSION_MAJOR}.${MIRALL_VERSION_MINOR}.${MIRALL_VERSION_PATCH}.${MIRALL_VERSION_BUILD}") -set(MSI_INSTALLER_FILENAME "${APPLICATION_SHORTNAME}-${VERSION}-${MSI_BUILD_ARCH}.msi") +if (NOT DEFINED MIRALL_VERSION_SUFFIX OR MIRALL_VERSION_SUFFIX MATCHES "git") + set(VERSION_SUFFIX "") +else() + set(VERSION_SUFFIX "-${MIRALL_VERSION_SUFFIX}") +endif() + +set(MSI_INSTALLER_FILENAME "${APPLICATION_SHORTNAME}-${VERSION}${VERSION_SUFFIX}-${MSI_BUILD_ARCH}.msi") configure_file(OEM.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/OEM.wxi) configure_file(collect-transform.xsl.in ${CMAKE_CURRENT_BINARY_DIR}/collect-transform.xsl)