diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f36245b..2f388d36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,12 +357,19 @@ IF (CMAKE_SYSTEM_NAME MATCHES "Windows") ) # Copy CEF binaries. - FOREACH(cef_dll libcef.dll natives_blob.bin snapshot_blob.bin d3dcompiler_47.dll libEGL.dll libGLESv2.dll wow_helper.exe) + FOREACH(cef_dll libcef.dll natives_blob.bin snapshot_blob.bin d3dcompiler_47.dll libEGL.dll libGLESv2.dll) add_custom_command(TARGET LOOT POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/${CEF_ROOT}/$/${cef_dll}" $/${cef_dll}) ENDFOREACH() + + IF (PROJECT_ARCH MATCHES "32") + add_custom_command(TARGET LOOT POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${CMAKE_SOURCE_DIR}/${CEF_ROOT}/$/wow_helper.exe" + $/wow_helper.exe) + ENDIF () ELSE () # Copy CEF binaries. FOREACH(cef_dll libcef.so natives_blob.bin snapshot_blob.bin chrome-sandbox) diff --git a/scripts/archive.js b/scripts/archive.js index 5c49d209..21b15bd8 100644 --- a/scripts/archive.js +++ b/scripts/archive.js @@ -58,7 +58,6 @@ function createAppArchive(release_path, dest_path) { 'libEGL.dll', 'libGLESv2.dll', 'libcef.dll', - 'wow_helper.exe', 'natives_blob.bin', 'snapshot_blob.bin', 'cef.pak', @@ -67,6 +66,10 @@ function createAppArchive(release_path, dest_path) { 'devtools_resources.pak', 'icudtl.dat' ]; + + if (helpers.fileExists(path.join(release_path, 'wow_helper.exe'))) { + binaries.push('wow_helper.exe'); + } } else { binaries = [ 'LOOT',