automate-chrome-extension-update
v1.0.11
Published
Automate Chrome Extension Update Workflow
Downloads
7
Readme
automate-chrome-extension-update
Automate Chrome Extension Update Workflow
Node 7 is required
More Information on "CLIENT_ID" AND "APP_ID" https://developer.chrome.com/webstore/using_webstore_api
For the first time please create extension.json with following keys
{ "CLIENT_ID": "<CLIENT_ID>", "APP_ID": "<APP_ID>" }
APP_ID
Your extension id, it is generated after the the extension is published to the store. This can be obtained from the url of the extension
CLIENT_ID
- Go to https://console.developers.google.com/apis/credentials
- Select Your Project
- Please make sure Chrome Store API Service is enabled (Library Tab on the left)
- Create credentials (In Credentials Tab) -> OAuth Client ID -> Application Type: Other
- There are "CLIENT_ID" and "CLIENT_SECRET"
and run 'node <command.js>'
Preparing commands
updateCode.js
Get the link in the console then open the browser, copy the code and paste into the console
updateToken.js
Automated request the token
Operation commands
These operations require code and token are ready ...
getUploadStatus.js
Simply request the status of the extension
updatePackage.js PATH-TO-ZIP-FILE
The parameter is the absolute path to the zip file to update
Tip
Please see https://github.com/phonglk/chrome-extension-webpack-boilerplate on how to integrate to project