mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Use the same pak files for the Alloy and Chrome runtimes (see issue #2969)
Chrome currently uses chrome_100_percent.pak, chrome_200_percent.pak, resources.pak and locales/<locale>.pak files. This change adds CEF resources to those existing pak files and updates the Alloy runtime to use them instead of the previous CEF-specific pak files (cef.pak, cef_100_percent.pak, cef_200_percent.pak, cef_extensions.pak, devtools_resources.pak) which are no longer generated. The addition of Chrome resources results in an ~16% (~4.1MB) increase in total combined pak file size vs. the previous CEF-specific pak files. While a size increase is not ideal for the Alloy runtime, it seems preferable to the alternative of distributing separate (and partially duplicated) pak files for each runtime, which would have added ~9.8MB to the total binary distribution size.
This commit is contained in:
@ -868,11 +868,9 @@ if platform == 'windows':
|
||||
|
||||
# yapf: disable
|
||||
resources = [
|
||||
{'path': 'cef.pak'},
|
||||
{'path': 'cef_100_percent.pak'},
|
||||
{'path': 'cef_200_percent.pak'},
|
||||
{'path': 'cef_extensions.pak'},
|
||||
{'path': 'devtools_resources.pak'},
|
||||
{'path': 'chrome_100_percent.pak'},
|
||||
{'path': 'chrome_200_percent.pak'},
|
||||
{'path': 'resources.pak'},
|
||||
{'path': 'icudtl.dat'},
|
||||
{'path': 'locales', 'delete': '*.info'},
|
||||
]
|
||||
@ -1185,11 +1183,9 @@ elif platform == 'linux':
|
||||
|
||||
# yapf: disable
|
||||
resources = [
|
||||
{'path': 'cef.pak'},
|
||||
{'path': 'cef_100_percent.pak'},
|
||||
{'path': 'cef_200_percent.pak'},
|
||||
{'path': 'cef_extensions.pak'},
|
||||
{'path': 'devtools_resources.pak'},
|
||||
{'path': 'chrome_100_percent.pak'},
|
||||
{'path': 'chrome_200_percent.pak'},
|
||||
{'path': 'resources.pak'},
|
||||
{'path': 'icudtl.dat'},
|
||||
{'path': 'locales', 'delete': '*.info'},
|
||||
]
|
||||
|
Reference in New Issue
Block a user