Open Amaimersion opened 5 months ago
Hi @Amaimersion 👋. Thank you for that detailed explanation. I don't think Including the key
is out of scope. Would you be up for opening a PR using the first approach with the crx3-utils library?
Sure. I will try to find free time and do it on this week
If you manually install extension from Chrome Web Store, then unzipped
manifest.json
will contain key property. This key is needed to sign CRX and produce constant extension ID. During unzipping Google Chrome automatically extracts public key from CRX, adds it tomanifest.json
and calculates extension ID. Example:If you use
unzip-crx
to unzip CRX, you will notice thatmanifest.json
is missingkey
. Example:I don't sure if this project should be responsible for extracting
key
, but during development I encountered a need for the rightkey
extraction, so I will submit the issue here. It would be nice to add it as a part of this project. But if it is out of scope, then at least add it in README.This project https://github.com/gromnitsky/crx3-utils implements
key
extraction using Node. Usage:You also can use it as a child process (example for Linux):
Both ways results in a key value that I provided at the beginning. Now you can change content of
manifest.json
and addkey
property with a correct value.Additional links:
crx3-utils
's author explanation)