Let Brave create extension key
This commit is contained in:
parent
63c368fa85
commit
0147a2152b
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ else
|
|||
|
||||
destination="$EXTENSION_DIR/$EXTENSION_NAME.crx";
|
||||
|
||||
sudo -u "$1" brave-browser --pack-extension="$extensionDir" --pack-extension-key="$keyFile";
|
||||
|
||||
# Tamper manifest file
|
||||
manifest="$(cat "$manifestFile" | jq ". + {key: "'"'"$(openssl rsa -in "$keyFile" -pubout -outform DER | openssl base64 -A)"'"'"}")";
|
||||
echo "$manifest" | sudo -u "$1" tee "$manifestFile";
|
||||
|
|
Loading…
Reference in a new issue