Windows Standalone builds include duplicates of the following cef related DLLs adding 187 MB to a passport enabled build.
The image above is the output of a passport enabled build
Cause
Unity: Passport DLL Platform/Import settings
All cef DLLs imported in the package are enabled for WindowsStandalone, OSXStandalone and LinuxStandalone. These are referenced and exported automatically when built to ../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/Plugins/x86_64/
UnityWebBrowser: EngineManagerPostprocess.cs
UnityWebBrowser post process script copies cef engine and related DLLs from Packages/com.immutable.passport/Runtime/ThirdParty/UnityWebBrowser.Engine.Cef.Win-x64/Engine/ to ../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/ImmutableSDK/Runtime/UWB/
Possible solution
Assumption: UnityWebBrowser requires cef DLLs in the same directory as UnityWebBrowser.Engine.Cef.exeSolution: Change EngineManagerPostprocess.OnPostprocessBuild(BuildReport report).buildUwbPath to ../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/Plugins/x86_64/ from {buildDataPath}/ImmutableSDK/Runtime/UWB/ to avoid DLL duplication.
Description
Windows Standalone builds include duplicates of the following cef related DLLs adding 187 MB to a passport enabled build.
The image above is the output of a passport enabled build
Cause
Unity: Passport DLL Platform/Import settings
All cef DLLs imported in the package are enabled for
WindowsStandalone
,OSXStandalone
andLinuxStandalone
. These are referenced and exported automatically when built to../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/Plugins/x86_64/
UnityWebBrowser: EngineManagerPostprocess.cs
UnityWebBrowser post process script copies cef engine and related DLLs from
Packages/com.immutable.passport/Runtime/ThirdParty/UnityWebBrowser.Engine.Cef.Win-x64/Engine/
to../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/ImmutableSDK/Runtime/UWB/
Possible solution
Assumption: UnityWebBrowser requires cef DLLs in the same directory as
UnityWebBrowser.Engine.Cef.exe
Solution: ChangeEngineManagerPostprocess.OnPostprocessBuild(BuildReport report).buildUwbPath
to../{PLATFORM_TARGET}/{PROJECT_NAME}_Data/Plugins/x86_64/
from{buildDataPath}/ImmutableSDK/Runtime/UWB/
to avoid DLL duplication.