在 macOS 设备上离线安装浏览器扩展程序
- Updated: 2025/06/30
Google Chrome 是一个基于 Chromium 的网页浏览器,使用 .crx 格式的插件文件。 这些文件与 Bot Agent 安装程序一起提供,可供 IT 管理员离线安装浏览器扩展程序。
远程安装
移动设备管理 (MDM) 使 IT 管理员能够远程配置、保护、更新和监控 macOS 设备(例如 iPhone、iPad、Mac、Apple TV)。 这消除了在各个设备上进行手动设置的需要。 Jamf 是一种可用于 macOS 的 MDM,因为它支持设备注册、库存跟踪、策略执行和应用更新。
考虑一种必须使用 Jamf MDM 安装 Google Chrome 扩展程序的场景。 您可以在 Jamf MDM 中使用以下任一选项:
-
JSON 脚本
使用以下 JSON 脚本:
{ "title": "Google Chrome Extensions (com.google.Chrome)", "description": "Install extensions in Google Chrome", "properties": { "ExtensionInstallForcelist": { "title": "Extension Install Forcelist", "description": "Add extension IDs. Paste the extension ID in front of the default text.", "property_order": 5, "type": "array", "items": { "title": "Extension ID", "default": "<bboccnojhhoegfffpcllbeigipedjedf>;https://clients2.google.com/service/update2/crx", "type": "string" } } } }
-
Plist
要在 Jamf MDM 中使用 Plist 选项,请确保您拥有一个包含应用程序和自定义设置负载的配置描述文件,在其中可以将 Preference domain 配置文件设置为 com.google.Chrome。 您可以使用以下 Plist 表单:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>ExtensionInstallForcelist</key> <array> <string>bboccnojhhoegfffpcllbeigipedjedf</string> </array> </dict> </plist>
手动安装
作为 IT 管理员,您可以选择为 Google Chrome 手动安装扩展程序。 对于 macOS 设备,您可以使用 Preferences JSON 文件安装程序。 有关更多信息,请参阅 Install Google Chrome using preferences JSON file。