diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-27 21:39:23 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-27 21:47:49 +0200 |
commit | b45670f9e93c6901119de5aeede8115af14c7c29 (patch) | |
tree | 05c2fe5732300a3caec74cfccd8b7954d8ef66b9 | |
parent | 06e3c9e2808538a2c414ad764d0f5362f35ee7fb (diff) | |
download | logdiag-b45670f9e93c6901119de5aeede8115af14c7c29.tar.gz logdiag-b45670f9e93c6901119de5aeede8115af14c7c29.tar.xz logdiag-b45670f9e93c6901119de5aeede8115af14c7c29.zip |
CMakeLists.txt: simplify NSIS configuration
Functionality has been verified to remain as it was
on a native Windows XP build using NSIS 3.08.
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7409a62..fae6c48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -422,12 +422,10 @@ set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${PROJECT_NAME}") set (CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/share\\\\header.bmp") set (CPACK_NSIS_INSTALLED_ICON_NAME "logdiag.exe") -set (CPACK_NSIS_CREATE_ICONS_EXTRA [[ - CreateShortCut '$SMPROGRAMS\\$STARTMENU_FOLDER\\logdiag.lnk' '$INSTDIR\\logdiag.exe' -]]) -set (CPACK_NSIS_DELETE_ICONS_EXTRA [[ - Delete '$SMPROGRAMS\\$MUI_TEMP\\logdiag.lnk' -]]) +set (CPACK_NSIS_URL_INFO_ABOUT "${project_URL}") +set (CPACK_NSIS_HELP_LINK "${project_URL}") +# Or CPACK_NSIS_EXECUTABLES_DIRECTORY needs to be changed from "bin" +set (CPACK_NSIS_MENU_LINKS "logdiag.exe" ${PROJECT_NAME}) set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS [[ WriteRegStr HKCR '.ldd' '' 'logdiag.Diagram' WriteRegStr HKCR 'logdiag.Diagram' '' 'logdiag Diagram' @@ -440,9 +438,6 @@ set (CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS [[ System::Call 'shell32::SHChangeNotify(i,i,i,i) (0x08000000, 0x1000, 0, 0)' ]]) -string (REPLACE "https://" "https:\\\\\\\\" project_URL_NSIS "${project_URL}") -set (CPACK_NSIS_URL_INFO_ABOUT "${project_URL_NSIS}") - set (CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk3.0-0 (>= 3.8), libjson-glib-1.0-0 (>= 0.10.4), liblua5.2-0") set (CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS @@ -460,4 +455,3 @@ set (CPACK_SOURCE_IGNORE_FILES "/\\\\.git;/build;/CMakeLists.txt.user;/win32-dep set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}") include (CPack) - |