【发布时间】:2017-05-30 00:53:40
【问题描述】:
我们构建了一个在陈列室中使用的应用程序,其中 (12) 台设备无法访问互联网。 几周后一切都很好,然后到处出现“chrome 已过期”通知。
我已经尝试了很多方法来摆脱这种情况,但不幸的是到目前为止没有任何效果。 所以我遵循了这里提供的建议:Disable "chrome is out of date" notification 并尝试更改代码。
我能够构建 chromium,但 60Go 对于目标设备来说太多了(Windows 8 嵌入式 (64),整体空间约为 80Go,剩余的可用空间约为 20Go) 我尝试使用更多选项进行重建:
is_debug = false
is_component_build = true
Symbol_level = 0
enable_nacl = false
remove_webcore_debug_symbols = true
那个时候,构建是“仅”20 Go... 我可以添加任何选项以减小构建的大小吗? 我只需要一个没有烦人通知的 chrome/Chromium 版本...
编辑 1:2017-05-31 * 感谢 nw.js 选项,我相信我下次会使用! 不幸的是,我不能用于这种特殊情况。
编辑2:2017-06-08 *
因为我需要 MP4 视频支持,所以我更新了配置文件,内容如下:
is_debug = false
is_java_debug = false
enable_iterator_debugging = false
is_official_build = true
optimize_for_size = true
target_os = "win"
is_component_build = false
target_cpu = "x64"
Symbol_level = 0
enable_nacl = false
remove_webcore_debug_symbols = true
#added for the MP4 support
proprietary_codecs = true
ffmpeg_branding = "Chrome"
构建增长到 70 Go...
在生产环境中使用它是巨大的。 所以我尽量只保留以下内容:
文件夹:
Locales
文件:
xxx.manifest
chrome.dll
chrome_100_percent.pak
chrome_200_percent.pak
chrome_child.dll
chrome_elf.dll
chrome_watcher.dll
d3dcompiler_47.dll
icudtl.dat
libegl.dll
libGLESv2.dll
natives_blob.bin
resources.pak
snapshot_blob.bin
它似乎按预期工作,至少就我目前测试的情况而言。
想知道是否有用于仅获取这些文件或删除所有调试文件的参数。
【问题讨论】:
标签: windows google-chrome build chromium