Skip to content

Commit dccc700

Browse files
committed
fix: bump version to4
1 parent 2d5e523 commit dccc700

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/build-and-release-desktop.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,22 @@ jobs:
213213
214214
# Calculate Base64-encoded SHA-512 hash using CertUtil
215215
HASH=$(certutil -hashfile "$FILE" SHA512 | tail -n +2 | head -n -1 | tr -d '\r\n' | xxd -r -p | base64)
216+
217+
# Log the calculated hash and file size
218+
echo "Calculated SHA-512 hash (Base64): $HASH"
219+
echo "File size (bytes): $SIZE"
220+
221+
# Escape special characters in HASH for sed
222+
ESCAPED_HASH=$(printf '%s\n' "$HASH" | sed 's/[&/\]/\\&/g')
216223
217224
# Update the `sha512` and `size` fields in the `files` section
218-
sed -i "s|sha512: .*|sha512: $HASH|" "$LATEST_YML"
219-
sed -i "s|size: .*|size: $SIZE|" "$LATEST_YML"
225+
sed -i "s#sha512: .*#sha512: $ESCAPED_HASH#" "$LATEST_YML"
226+
sed -i "s#size: .*#size: $SIZE#" "$LATEST_YML"
220227
221228
# Update the global `sha512` field
222-
sed -i "0,/sha512:/s|sha512: .*|sha512: $HASH|" "$LATEST_YML"
229+
sed -i "0,/sha512:/s#sha512: .*#sha512: $ESCAPED_HASH#" "$LATEST_YML"
223230
224-
echo "Updated $LATEST_YML with size=$SIZE and sha512=$HASH"
231+
echo "Updated $LATEST_YML with size=$SIZE and sha512=$ESCAPED_HASH"
225232
if: matrix.os == 'windows-2019'
226233

227234
- name: Build Electron app (Linux)

packages/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "desktop",
33
"productName": "Firefly IOTA",
4-
"version": "2.1.0-alpha-3",
4+
"version": "2.1.0-alpha-4",
55
"description": "Official wallet application of Shimmer",
66
"main": "public/build/main.js",
77
"repository": "[email protected]:iotaledger/firefly.git",

0 commit comments

Comments
 (0)