Skip to content

Commit

Permalink
fix first-time configuration failure for win32 target w/ CPack on
Browse files Browse the repository at this point in the history
also port over some minor installer tweaks from master
  • Loading branch information
Akaricchi committed Oct 27, 2017
1 parent 113e8b2 commit 9e0f575
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 65 deletions.
62 changes: 0 additions & 62 deletions scripts/CPackRuntimeSettings.cmake

This file was deleted.

2 changes: 2 additions & 0 deletions scripts/CPackRuntimeSettings.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

set(CPACK_RESOURCE_FILE_LICENSE "@_CPACK_RESOURCE_FILE_LICENSE@")
14 changes: 11 additions & 3 deletions scripts/CPackSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ endif()

if(WIN32)
set(CPACK_GENERATOR "${NSIS};7Z")
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_BINARY_DIR}/win32docs/COPYING")
set(_CPACK_RESOURCE_FILE_LICENSE "${PROJECT_BINARY_DIR}/win32docs/COPYING")
else()
set(CPACK_GENERATOR "TGZ")
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
set(_CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
endif()

set(CPACK_PACKAGE_NAME "Taisei")
Expand All @@ -30,6 +30,14 @@ set(CPACK_PACKAGE_EXECUTABLES "taisei" "Taisei")
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
set(CPACK_NSIS_INSTALLED_ICON_NAME "taisei.exe")
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "taisei.exe")
set(CPACK_NSIS_HELP_LINK "http://taisei-project.org")
set(CPACK_NSIS_HELP_LINK "https://taisei-project.org/")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL TRUE)

configure_file(
"${BUILDSCRIPTS_DIR}/CPackRuntimeSettings.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/CPackRuntimeSettings.cmake"
@ONLY)

set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_CURRENT_BINARY_DIR}/CPackRuntimeSettings.cmake")

include(CPack)

0 comments on commit 9e0f575

Please sign in to comment.