From 69a1e39fe921f8ef8e3a2d0f92aa1760c656d81b Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 24 Nov 2021 12:29:47 +0100 Subject: [PATCH] Show extension ID at the end of processing --- crxmake.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crxmake.sh b/crxmake.sh index b182b21..cf7234a 100755 --- a/crxmake.sh +++ b/crxmake.sh @@ -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'