Skip to content

Commit 2f7d44a

Browse files
authored
Rename output windows msi (#3330)
Co-authored-by: MatusGuy <[email protected]>
1 parent 76a2bae commit 2f7d44a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mk/cmake/SuperTux/BuildCPack.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ else()
6161
set(CPACK_PACKAGE_VERSION_PATCH ${SUPERTUX_VERSION_PATCH})
6262
endif()
6363

64-
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${SUPERTUX_VERSION_STRING}-${CMAKE_SYSTEM_NAME}")
64+
set(SUPERTUX_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
65+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
66+
set(SUPERTUX_SYSTEM_NAME "win64")
67+
else()
68+
set(SUPERTUX_SYSTEM_NAME "win32")
69+
endif()
70+
71+
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${SUPERTUX_VERSION_STRING}-${SUPERTUX_SYSTEM_NAME}")
6572
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${SUPERTUX_VERSION_STRING}-Source")
6673
set(CPACK_PACKAGE_INSTALL_DIRECTORY "SuperTux")
6774
set(CPACK_PACKAGE_EXECUTABLES "supertux2" "SuperTux")

0 commit comments

Comments
 (0)