-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CPack to use tag in filename and update NSIS package
Closes #1611
- Loading branch information
Showing
3 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ set(CPACK_PACKAGE_CONTACT "longturn.net") | |
set(CPACK_PACKAGE_VERSION_MAJOR ${FC21_MAJOR_VERSION}) | ||
set(CPACK_PACKAGE_VERSION_MINOR ${FC21_MINOR_VERSION}) | ||
set(CPACK_PACKAGE_VERSION_PATCH ${FC21_PATCH_VERSION}) | ||
set(CPACK_PACKAGE_VERSION ${FREECIV21_VERSION}) | ||
set(CPACK_PACKAGE_VERSION ${FC21_REV_TAG}) | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Freeciv21 - Freeciv for the 21st Century") | ||
set(CPACK_PACKAGE_HOMEPAGE_URL "https://longturn.net") | ||
set(CMAKE_PROJECT_HOMEPAGE_URL "https://longturn.net") | ||
|
@@ -19,6 +19,7 @@ if(WIN32 OR MSYS OR MINGW) | |
|
||
# Use the NSIS Package for Windows | ||
set(CPACK_GENERATOR "NSIS") | ||
set(CPACK_BINARY_NSIS "ON") | ||
|
||
# Establish some variables to place the package where we want it | ||
if(NOT CPACK_SYSTEM_NAME) | ||
|
@@ -33,7 +34,7 @@ if(WIN32 OR MSYS OR MINGW) | |
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/${CPACK_SYSTEM_NAME}") | ||
set(CPACK_OUTPUT_FILE_PREFIX ${CPACK_PACKAGE_DIRECTORY}) | ||
# The name of the package exe file | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-v${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}") | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${FC21_REV_TAG}-${CPACK_SYSTEM_NAME}") | ||
|
||
## Component definition | ||
# - variable names are UPPER CASE, even if component names are lower case | ||
|
@@ -75,7 +76,6 @@ if(WIN32 OR MSYS OR MINGW) | |
set(CPACK_NSIS_HELP_LINK "${CPACK_PACKAGE_HOMEPAGE_URL}") | ||
set(CPACK_NSIS_URL_INFO_ABOUT "${CPACK_PACKAGE_HOMEPAGE_URL}") | ||
set(CPACK_NSIS_MENU_LINKS "${CPACK_PACKAGE_HOMEPAGE_URL}" "Longturn Homepage") | ||
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "OFF") | ||
set(CPACK_NSIS_MODIFY_PATH "OFF") | ||
set(CPACK_NSIS_CONTACT "[email protected]") | ||
|
||
|
@@ -99,9 +99,12 @@ if(UNIX AND NOT APPLE) | |
|
||
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/${CPACK_SYSTEM_NAME}") | ||
set(CPACK_OUTPUT_FILE_PREFIX ${CPACK_PACKAGE_DIRECTORY}) | ||
# The name of the package file | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${FC21_REV_TAG}-${CPACK_SYSTEM_NAME}") | ||
|
||
# Debian "deb" file generator settings | ||
set(CPACK_GENERATOR "DEB") | ||
set(CPACK_BINARY_DEB "ON") | ||
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) | ||
set(CPACK_DEBIAN_PACKAGE_SECTION "Games") | ||
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters