@@ -1477,7 +1477,7 @@ macro (setup_executable)
unset (FILES)
set (EXTS data html.map html.mem js wasm)
if (SELF_EXECUTABLE_SHELL)
- install (TARGETS ${TARGET_NAME} RUNTIME DESTINATION ${DEST_BUNDLE_DIR})
+ install (PROGRAMS $<TARGET_FILE:${TARGET_NAME}> DESTINATION ${DEST_BUNDLE_DIR})
else ()
list (APPEND EXTS html)
endif ()