mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix NSIS shortcut backslash escaping in CPack config
CMake processes escape sequences twice: once reading CMakeLists.txt and once loading the generated CPackConfig.cmake. Backslashes need four levels of escaping (\\) to survive both passes and land as a single backslash in the injected NSIS script.
This commit is contained in:
parent
1025e0cdfc
commit
5a2cb48b89
1 changed files with 2 additions and 2 deletions
|
|
@ -558,9 +558,9 @@ if(WIN32)
|
|||
# Run wowee from bin/ so that ./assets/ resolves correctly.
|
||||
# SetOutPath sets the shortcut's working directory in NSIS.
|
||||
set(CPACK_NSIS_CREATE_ICONS_EXTRA
|
||||
"SetOutPath '$INSTDIR\\bin'\nCreateShortCut '$SMPROGRAMS\\$STARTMENU_FOLDER\\Wowee.lnk' '$INSTDIR\\bin\\wowee.exe'")
|
||||
"SetOutPath '$INSTDIR\\\\bin'\nCreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Wowee.lnk' '$INSTDIR\\\\bin\\\\wowee.exe'")
|
||||
set(CPACK_NSIS_DELETE_ICONS_EXTRA
|
||||
"Delete '$SMPROGRAMS\\$STARTMENU_FOLDER\\Wowee.lnk'")
|
||||
"Delete '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Wowee.lnk'")
|
||||
elseif(APPLE)
|
||||
set(CPACK_GENERATOR "DragNDrop")
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue