mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-19 20:32:03 +03:00
001deace2d
Signed-off-by: alex-z <blackslayer4@gmail.com>
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
if(CMAKE_SIZEOF_VOID_P MATCHES 4)
|
|
set(MSI_BUILD_ARCH x86)
|
|
else()
|
|
set(MSI_BUILD_ARCH x64)
|
|
endif()
|
|
|
|
string(SUBSTRING ${GIT_SHA1} 0 7 GIT_REVISION)
|
|
|
|
set(VERSION "${MIRALL_VERSION_MAJOR}.${MIRALL_VERSION_MINOR}.${MIRALL_VERSION_PATCH}.${MIRALL_VERSION_BUILD}")
|
|
|
|
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(RegistryCleanup.vbs.in ${CMAKE_CURRENT_BINARY_DIR}/RegistryCleanup.vbs)
|
|
configure_file(OEM.wxi.in ${CMAKE_CURRENT_BINARY_DIR}/OEM.wxi)
|
|
configure_file(collect-transform.xsl.in ${CMAKE_CURRENT_BINARY_DIR}/collect-transform.xsl)
|
|
configure_file(make-msi.bat.in ${CMAKE_CURRENT_BINARY_DIR}/make-msi.bat)
|
|
|
|
install(FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/OEM.wxi
|
|
${CMAKE_CURRENT_BINARY_DIR}/collect-transform.xsl
|
|
${CMAKE_CURRENT_BINARY_DIR}/make-msi.bat
|
|
Platform.wxi
|
|
Nextcloud.wxs
|
|
${CMAKE_CURRENT_BINARY_DIR}/RegistryCleanup.vbs
|
|
RegistryCleanupCustomAction.wxs
|
|
gui/banner.bmp
|
|
gui/dialog.bmp
|
|
DESTINATION msi/)
|