Skip to content

Commit f06a2a6

Browse files
committed
fix: bump version to 7
1 parent b694c24 commit f06a2a6

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,18 @@ jobs:
218218
echo "Calculated SHA-512 hash (Base64): $HASH"
219219
echo "File size (bytes): $SIZE"
220220
221-
# Update the `sha512` and `size` fields in the `files` section using '!' as delimiter
222-
sed -i "s!sha512: .*!sha512: $HASH!" "$LATEST_YML"
223-
sed -i "s!size: .*!size: $SIZE!" "$LATEST_YML"
221+
# Install Chocolatey and yq (for Windows)
222+
if [[ "$RUNNER_OS" == "Windows" ]]; then
223+
Set-ExecutionPolicy Bypass -Scope Process -Force
224+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
225+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
226+
choco install yq -y
227+
fi
224228
225-
# Update the global `sha512` field using '!' as delimiter
226-
sed -i "0,/sha512:/s!sha512: .*!sha512: $HASH!" "$LATEST_YML"
229+
# Update the YAML file using yq
230+
yq e ".files[0].sha512 = \"$HASH\"" -i "$LATEST_YML"
231+
yq e ".files[0].size = $SIZE" -i "$LATEST_YML"
232+
yq e ".sha512 = \"$HASH\"" -i "$LATEST_YML"
227233
228234
echo "Updated $LATEST_YML with size=$SIZE and sha512=$HASH"
229235
if: matrix.os == 'windows-2019'

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-6",
4+
"version": "2.1.0-alpha-7",
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)