mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-12 21:10:46 -05:00
CLEANER!
This commit is contained in:
parent
fd10fdd4a8
commit
f1633371be
@ -491,7 +491,7 @@ jobs:
|
||||
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_SIZE_MB=$(stat -c %s "$BUILD_NAME" | awk '{printf "%.2f MB", $1 / 1024 / 1024}')
|
||||
FILE_HASH=$(sha256sum "$BUILD_NAME" | awk '{print $1}')
|
||||
|
||||
if [ "$BUILD_TYPE" == "bleeding" ]; then
|
||||
@ -507,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**File Size:** 📦\n'"${FILE_SIZE_MB}"$'\n\n**SHA-256 Hash:** 🔒\n'"${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}"
|
||||
EMBED_DESCRIPTION+=$'\n\n**Build Information:** 📊\nName: '"${BASE_NAME}"$'\nFile Size: '"${FILE_SIZE_MB}"$'\nSHA-256 Hash: '"${FILE_HASH}"$'\n\n**Primary Download Link:** 🚀\n'"${LINK_MEGA}"$'\n\n**Torrent Link:** 🔗\n'"${LINK_TORRENT}"$'\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" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user