diff --git a/.gitignore b/.gitignore index 817efc1f95b..71a8ef00e23 100644 --- a/.gitignore +++ b/.gitignore @@ -141,3 +141,5 @@ tags *.vcxproj *.zip /build + +!steam_api.dll diff --git a/CMakeLists.txt b/CMakeLists.txt index d33d740bebc..38ca1e80b78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3301,6 +3301,7 @@ set(CPACK_DIRS set(CPACK_FILES license.txt storage.cfg + steam_appid.txt ${COPY_FILES} ) @@ -3672,3 +3673,15 @@ foreach(target ${TARGETS_DEP}) target_compile_options(${target} PRIVATE ${OUR_FLAGS_DEP}) endif() endforeach() + +if(TARGET_OS STREQUAL "windows" AND STEAM AND NOT CMAKE_BUILD_TYPE STREQUAL Debug) + add_custom_command( + TARGET game-client POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${CMAKE_SOURCE_DIR}/steam_api.dll" + "$" + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${CMAKE_SOURCE_DIR}/steam_appid.txt" + "$" + ) +endif() diff --git a/docs/index.html b/docs/index.html index 743e570e1fb..7cf9bbb35e3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -200,7 +200,7 @@

Plus More