Commit 18f1bc5c authored by Bruno Rodrigues's avatar Bruno Rodrigues
Browse files

positron-bin: fix update script

parent ea7f1f06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,11 +18,11 @@ fi

# Update Darwin hash.
current_hash=$(nix store prefetch-file --json --hash-type sha256 \
    "https://cdn.posit.co/positron/releases/mac/universal/Positron-${current_version}-universal.dmg" \
    "https://cdn.posit.co/positron/releases/mac/arm64/Positron-${current_version}-arm64.dmg" \
    | jq -r .hash)

new_hash=$(nix store prefetch-file --json --hash-type sha256 \
    "https://cdn.posit.co/positron/releases/mac/universal/Positron-${new_version}-universal.dmg" \
    "https://cdn.posit.co/positron/releases/mac/arm64/Positron-${new_version}-arm64.dmg" \
    | jq -r .hash)

sed -i "s|$current_hash|$new_hash|g" $positron_nix