<commit_before>#!/bin/bash
set -eu
VERSION="$1" # such as 3.7.1, 4.0.0-rc1
cat <<-MD
### Mattermost Desktop ${VERSION} has been cut!
The download links can be found below.

#### Linux
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-linux-ia32.tar.gz
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-linux-x64.tar.gz
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-linux-amd64.deb
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-linux-i386.deb

#### Mac
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-osx.tar.gz

#### Windows
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-win32.zip
https://releases.mattermost.com/desktop/${VERSION}/mattermost-desktop-${VERSION}-win64.zip
https://releases.mattermost.com/desktop/${VERSION}/mattermost-setup-${VERSION}-win32.exe
https://releases.mattermost.com/desktop/${VERSION}/mattermost-setup-${VERSION}-win64.exe
MD<commit_msg>Add checksum for release template<commit_after>#!/bin/bash
set -eu

function print_link() {
  local URL="${1}"
  local CHECKSUM="$(curl -s -S -L "${URL}" | sha256sum | awk '{print $1}')"
  echo "${URL}"
  echo "  - SHA-256 Checksum: \`${CHECKSUM}\`"
}

VERSION="$1" # such as 3.7.1, 4.0.0-rc1
BASE_URL="https://releases.mattermost.com/desktop/${VERSION}"

cat <<-MD
### Mattermost Desktop ${VERSION} has been cut!
The download links can be found below.

#### Linux
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-linux-ia32.tar.gz")
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-linux-x64.tar.gz")
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-linux-amd64.deb")
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-linux-i386.deb")

#### Mac
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-osx.tar.gz")

#### Windows
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-win32.zip")
$(print_link "${BASE_URL}/mattermost-desktop-${VERSION}-win64.zip")
$(print_link "${BASE_URL}/mattermost-setup-${VERSION}-win32.exe")
$(print_link "${BASE_URL}/mattermost-setup-${VERSION}-win64.exe")
MD
{'fraction_non_alphanumeric': 0.21232876712328766, 'fraction_numerical': 0.026484018264840183, 'mean_word_length': 5.63939393939394, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3087998', 'n_tokens_mistral': 843, 'n_tokens_neox': 735, 'n_words': 105}