diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 687e43a..4d8ddab 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -485,12 +485,14 @@ jobs: LINK_MEGA: ${{ steps.upload-mega.outputs.link_mega }} LINK_HTTPS: ${{ steps.upload-https-7z.outputs.link_https }} LINK_TORRENT: ${{ steps.upload-https-torrent.outputs.link_torrent }} - LINK_MAGNET: ${{ steps.torrent_create.outputs.link_magnet }} + BUILD_NAME: ${{ needs.assemble-release.outputs.build_name }} run: | cd /workspace/refringe/Build/ FOOTER_MESSAGES=("You look great today!" "Powered by coffee" "Did you remember to hydrate today?" "Have you tried turning it off and on again?" "In Chomp we trust" "Beep boop, I'm a bot" "Keep calm and commit your code" "May the source be with you" "Go to bed, Terk" "Please direct all support requests to Drakia" "Meaw") FOOTER_MESSAGE="${FOOTER_MESSAGES[$RANDOM % ${#FOOTER_MESSAGES[@]}]}" TIMESTAMP=$(date --iso-8601=seconds) + FILE_SIZE_MB=$(stat -c %s "$BUILD_NAME" | awk '{print $1 / 1024 / 1024 " MB"}') + FILE_HASH=$(sha256sum "$BUILD_NAME" | awk '{print $1}') if [ "$BUILD_TYPE" == "bleeding" ]; then EMBED_COLOR=14423100 @@ -505,7 +507,7 @@ jobs: EMBED_TITLE="Release Build Now Available" EMBED_DESCRIPTION=$'A new stable release build is now ready for download. 7-Zip is *required* to extract the release.' fi - EMBED_DESCRIPTION+=$'\n\n**Build Name:**\n'"${BASE_NAME}"$'\n\nšŸš€ **Primary Download Link:**\n'"${LINK_MEGA}"$'\n\nšŸ”— **Torrent Link:**\n'"${LINK_TORRENT}"$'\n\nšŸ§² **Torrent Magnet Link:**\n'"${LINK_MAGNET}"$'\n\n**Mirrors:**\n\nšŸš§ In order to conserve bandwidth, please consider using the *above* methods to download the release. If you have issues using those methods, you are free to download using any of the following HTTP mirrors.\n\nšŸš§ While the links *below* are not secret, **do not advertise them**. The primary MEGA link or torrent should be used to advertise any downloads.\n\n'"${LINK_HTTPS}" + EMBED_DESCRIPTION+=$'\n\n**Build Name:**\n'"${BASE_NAME}"$'\n\nšŸš€ **Primary Download Link:**\n'"${LINK_MEGA}"$'\n\nšŸ”— **Torrent Link:**\n'"${LINK_TORRENT}"$'\n\nšŸ“¦ **File Size:** '"${FILE_SIZE_MB}"$'\nšŸ”’ **SHA-256 Hash:** '"${FILE_HASH}"$'\n\n**šŸŒ Mirrors:**\n\nIn order to conserve bandwidth, please consider using the *above* methods to download the release. If you have issues using those methods, you are free to download using any of the following HTTP mirrors.\n\nWhile the links *below* are not secret, **do not advertise them**. The primary MEGA link or torrent should be used to advertise any downloads.\n\n'"${LINK_HTTPS}" jq -n \ --arg EMBED_TITLE "$EMBED_TITLE" \