At this link ,它说:
These command line options to Chrome may help you iterate:
--load-and-launch-app=/path/to/app/
installs the unpacked application from the given path, and launches it.
整个命令行语句是什么?
例如是不是:
$ chrome --load-and-launch-app=/path/to/app/
或者也许:
$ cca --load-and-launch-app=/path/to/app/
具体来说,整个命令是什么?
最佳答案
您正确的基本命令
/Path/to/Chrome --load-and-launch-app=/Path/to/App
假设您使用的是 Mac、OSX(根据您的评论),并且您以正常方式安装了 Google Chrome(进入您的应用程序目录),您的/Path/to/Chrome 将为
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
但要确保您可以将 Google Chrome 应用程序直接连接到终端(假设标准 MacOSX 终端或 iTerm)
对于命令的/Path/To/App 部分,请使用包含 manifest.json 文件的目录。 例如,如果 manifest.json 文件的路径是
/Users/[Your Username]/Downloads/basic/manifest.json
你可以从这里得到link
加载并启动“基本”Google Chrome 应用程序的命令是
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --load-and-launch-app=/Users/[Your Username]/Downloads/basic
关于google-chrome - 如何从命令行加载并启动 Google Chrome 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34193343/