Show extension ID at the end of processing
This commit is contained in:
parent
a193d07d4d
commit
69a1e39fe9
@ -21,7 +21,6 @@ cwd=$(pwd -P)
|
|||||||
(cd "$dir" && zip -qr -9 -X "$cwd/$zip" .)
|
(cd "$dir" && zip -qr -9 -X "$cwd/$zip" .)
|
||||||
|
|
||||||
echo "${EXTENSION_CRX_KEY}" > /tmp/extension.pem
|
echo "${EXTENSION_CRX_KEY}" > /tmp/extension.pem
|
||||||
cat /tmp/extension.pem
|
|
||||||
|
|
||||||
#extract crx id
|
#extract crx id
|
||||||
openssl rsa -in /tmp/extension.pem -pubout -outform der | openssl dgst -sha256 -binary -out "$binary_crx_id"
|
openssl rsa -in /tmp/extension.pem -pubout -outform der | openssl dgst -sha256 -binary -out "$binary_crx_id"
|
||||||
@ -56,4 +55,5 @@ header_chunk_3="82 F1 04 12 0A 10"
|
|||||||
echo "$header_chunk_3" | xxd -r -p
|
echo "$header_chunk_3" | xxd -r -p
|
||||||
cat "$binary_crx_id" "$zip"
|
cat "$binary_crx_id" "$zip"
|
||||||
) > "$crx"
|
) > "$crx"
|
||||||
echo "Wrote $crx"
|
echo -e "Wrote $crx. Extension id: "
|
||||||
|
cat "$binary_crx_id" | xxd -p -l 16 | tr '0123456789abcdef' 'abcdefghijklmnop'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user