diff --git a/Source/Editor/Cooker/Platform/Web/WebPlatformTools.cpp b/Source/Editor/Cooker/Platform/Web/WebPlatformTools.cpp index df01500ce..bd35fd61b 100644 --- a/Source/Editor/Cooker/Platform/Web/WebPlatformTools.cpp +++ b/Source/Editor/Cooker/Platform/Web/WebPlatformTools.cpp @@ -198,6 +198,13 @@ bool WebPlatformTools::OnPostProcess(CookingData& data) } } + // Copy icon file + { + String dstIcon = data.OriginalOutputPath / TEXT("favicon.ico"); + if (!FileSystem::FileExists(dstIcon)) + FileSystem::CopyFile(dstIcon, platformDataPath / TEXT("favicon.ico")); + } + // TODO: customizable HTML templates // Insert packaged file system with game data diff --git a/Source/Platforms/Web/Binaries/favicon.ico b/Source/Platforms/Web/Binaries/favicon.ico new file mode 100644 index 000000000..6085f6e67 Binary files /dev/null and b/Source/Platforms/Web/Binaries/favicon.ico differ