mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Add initial try for an NSIS64 installer
This commit is contained in:
parent
b946926b16
commit
3d8b6d9ea8
@ -161,8 +161,22 @@ install (FILES resources/icon/planetblupi.png DESTINATION share/planetblupi)
|
||||
## Deploy
|
||||
#########
|
||||
|
||||
if (USE_APPIMAGE AND "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
include (LinuxAppImageBuild)
|
||||
set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
APPIMAGE_PACKAGE (planetblupi "planetblupi" "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "")
|
||||
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
if (USE_APPIMAGE)
|
||||
include (LinuxAppImageBuild)
|
||||
set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
APPIMAGE_PACKAGE (planetblupi "planetblupi" "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "")
|
||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
set (CPACK_GENERATOR NSIS64)
|
||||
set (CPACK_PACKAGE_NAME "planetblupi")
|
||||
set (CPACK_PACKAGE_VENDOR "blupi.org")
|
||||
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "PlanetBlupi")
|
||||
set (CPACK_PACKAGE_VERSION_MAJOR ${PB_VERSION_MAJOR})
|
||||
set (CPACK_PACKAGE_VERSION_MINOR ${PB_VERSION_MINOR})
|
||||
set (CPACK_PACKAGE_VERSION_PATCH ${PB_VERSION_PATCH})
|
||||
set (CPACK_PACKAGE_INSTALL_DIRECTORY "planetblupi")
|
||||
set (CPACK_NSIS_MODIFY_PATH ON)
|
||||
|
||||
include (CPack)
|
||||
endif ()
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user