File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,13 +213,13 @@ jobs:
213
213
214
214
# Calculate Base64-encoded SHA-512 hash using CertUtil
215
215
HASH=$(certutil -hashfile "$FILE" SHA512 | tail -n +2 | head -n -1 | tr -d '\r\n' | xxd -r -p | base64)
216
-
216
+
217
217
# Log the calculated hash and file size
218
218
echo "Calculated SHA-512 hash (Base64): $HASH"
219
219
echo "File size (bytes): $SIZE"
220
220
221
221
# Escape special characters in HASH for sed
222
- ESCAPED_HASH=$(printf '%s\n' "$HASH" | sed 's/[&/\ ]/\\&/g')
222
+ ESCAPED_HASH=$(printf '%s\n' "$HASH" | sed -e 's/[\/& ]/\\&/g')
223
223
224
224
# Update the `sha512` and `size` fields in the `files` section
225
225
sed -i "s#sha512: .*#sha512: $ESCAPED_HASH#" "$LATEST_YML"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " desktop" ,
3
3
"productName" : " Firefly IOTA" ,
4
- "version" : " 2.1.0-alpha-4 " ,
4
+ "version" : " 2.1.0-alpha-5 " ,
5
5
"description" : " Official wallet application of Shimmer" ,
6
6
"main" : " public/build/main.js" ,
7
7
"repository" :
" [email protected] :iotaledger/firefly.git" ,
You can’t perform that action at this time.
0 commit comments