我们使用了一个网站,该网站也是一个webapp,它将在您首次打开后脱机和联机运行。当前,我们通过打开站点,然后在浏览器菜单上,依次单击“更多工具”和“创建快捷方式”,在chrome浏览器中手动创建桌面快捷方式。我们还选中“作为窗口打开”框。这样,不仅可以放置一个无论何时都可以在Chrome中始终打开的快捷方式,还可以使它看起来更简洁。完成此操作后,将在计算机的Google extensions文件夹中创建一个扩展。我想将其转换为可以通过组策略进行部署的Chrome应用,但是即使按照开发人员的说明进行操作,我似乎也无法正常运行。
我已经获取了手动执行时创建的manifest.json,并添加了chrome应用程序所需的缺少的参数,或者至少从我的判断中可以找到。我什至在chrome网站商店中发布了该应用。但这似乎不起作用。
原始的Manifest.json包含:
{"app": {
"icon_color": "#C02331",
"launch": {
"web_url": "https://www.example.com/RunForm/Login"
},
"linked_icons": [ {
"size": 16,
"url": "https://www.example.com/Content/images/favicon.ico"
}, {
"size": 32,
"url": "https://www.example.com/Content/images/favicon.ico"
}, {
"size": 48,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-76x76.png"
}, {
"size": 64,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-76x76.png"
}, {
"size": 76,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-76x76.png"
}, {
"size": 96,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-120x120.png"
}, {
"size": 120,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-120x120.png"
}, {
"size": 128,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-152x152.png"
}, {
"size": 152,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-152x152.png"
}, {
"size": 256,
"url": "https://www.example.com/Content/images/runform/apple-touch-icon-152x152.png"
} ]
},
"description": "",
"icons": {
"120": "icons/120.png",
"128": "icons/128.png",
"152": "icons/152.png",
"16": "icons/16.png",
"256": "icons/256.png",
"32": "icons/32.png",
"48": "icons/48.png",
"64": "icons/64.png",
"76": "icons/76.png",
"96": "icons/96.png"
},
"key": "sKDvXmTdpPytbue4P6yYy+6MRc+SMw5PutBMuCo/yLs=",
"name": "Run Form Login",
"version": "2019.5.28.54363"}
然后我添加:
"manifest_version": 2,
"name": "Run Form Login",
"description": "RunForm Login Page",
"update_url": "https://clients2.google.com/service/update2/crx",
"permissions": [
"unlimitedStorage",
"notifications"
]
我期望它将像我手动安装的那样通过GPO作为扩展安装。然后使用桌面快捷方式访问“ C:\ Program Files(x86)\ Google \ Chrome \ Application \ chrome_proxy.exe” --profile-directory = Default --app-id = [xx_TheAppIdOfTheExtension_xx]即可打开,然后在窗口,就像我们手动创建链接时一样。但是,它只是打开Chrome。而且即使强制安装的信息在chrome:// policy
中是正确的,扩展名也不会最终出现在扩展名文件夹中