We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4191756 commit 2742b76Copy full SHA for 2742b76
makecrx.sh
@@ -135,7 +135,7 @@ version_hex="0200 0000" # 2
135
pub_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$pub" | awk '{print $5}')))
136
sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}')))
137
(
138
- echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | xxd -r -p
+ echo "$crmagic_hex $version_hex $pub_len_hex $sig_len_hex" | sed -e 's/\s//g' -e 's/\([0-9A-F]\{2\}\)/\\\\\\x\1/gI' | xargs printf
139
cat "$pub" "$sig" "$zip"
140
) > "$crx"
141
#rm -rf pkg/crx
0 commit comments