Show extension ID at the end of processing
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
nemunaire 2021-11-24 12:29:47 +01:00
parent a193d07d4d
commit 69a1e39fe9
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,6 @@ cwd=$(pwd -P)
(cd "$dir" && zip -qr -9 -X "$cwd/$zip" .)
echo "${EXTENSION_CRX_KEY}" > /tmp/extension.pem
cat /tmp/extension.pem
#extract 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
cat "$binary_crx_id" "$zip"
) > "$crx"
echo "Wrote $crx"
echo -e "Wrote $crx. Extension id: "
cat "$binary_crx_id" | xxd -p -l 16 | tr '0123456789abcdef' 'abcdefghijklmnop'