Pack Chrome extension on server with only command-line interface

前端 未结 2 1505
悲哀的现实
悲哀的现实 2021-02-01 06:22

Is it possible to pack chrome extension with key (*.pem) on server only with CLI (Ubuntu-server)?

2条回答
  •  礼貌的吻别
    2021-02-01 07:03

    You can use the application switches --pack-extension and --pack-extension-key as described in the documentation.

    Basically, on Windows, you'd run the following in a terminal:

    chrome.exe --pack-extension=c:\myext --pack-extension-key=c:\myext.pem
    

    It works on Mac as well with:

    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=./myext --pack-extension-key=./myext.pem
    

    It should be similar on Ubuntu.

    Leaving out --pack-extension-key will automatically create a key for you.

提交回复
热议问题