mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
Init 1.21.5 setup
This commit is contained in:
@@ -6,9 +6,6 @@ IS_UNSUPPORTED=false
|
||||
|
||||
RELEASE_NOTES="release_notes.md"
|
||||
|
||||
# Rename Leaf jar
|
||||
mv ./leaf-1.21.4-"${BUILD_NUMBER}"-mojmap.jar ./leaf-1.21.4-"${BUILD_NUMBER}".jar
|
||||
|
||||
# Branch name
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
echo "✨Current branch: $CURRENT_BRANCH"
|
||||
@@ -47,7 +44,7 @@ echo "" >> $RELEASE_NOTES
|
||||
} >> $RELEASE_NOTES
|
||||
|
||||
# Get checksums
|
||||
file="./leaf-1.21.4-"${BUILD_NUMBER}".jar"
|
||||
file="./leaf-1.21.5-"${BUILD_NUMBER}".jar"
|
||||
if [ -f "$file" ]; then
|
||||
MD5=$(md5sum "$file" | awk '{ print $1 }')
|
||||
SHA256=$(sha256sum "$file" | awk '{ print $1 }')
|
||||
@@ -88,5 +85,5 @@ if [ "$IS_UNSUPPORTED" = true ]; then
|
||||
fi
|
||||
|
||||
# Delete last tag
|
||||
gh release delete ver-1.21.4 --cleanup-tag -y -R "${GITHUB_REPO}"
|
||||
gh release delete ver-1.21.5 --cleanup-tag -y -R "${GITHUB_REPO}"
|
||||
echo "🚀Ready for release"
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
# Credit: https://github.com/PurpurMC/Purpur
|
||||
|
||||
# Usage:
|
||||
# upstreamCommit --paper HASH --gale HASH --purpur HASH --leaves HASH
|
||||
# upstreamCommit --paper HASH --purpur HASH --leaves HASH
|
||||
# flag: --paper HASH - (Optional) the commit hash to use for comparing commits between paper (PaperMC/Paper/compare/HASH...HEAD)
|
||||
# flag: --gale HASH - the commit hash to use for comparing commits between gale (Dreeam-qwq/Gale/compare/HASH...HEAD)
|
||||
# flag: --purpur HASH - the commit hash to use for comparing commits between purpur (PurpurMC/Purpur/compare/HASH...HEAD)
|
||||
# flag: --leaves HASH - the commit hash to use for comparing commits between leaves (LeavesMC/Leaves/compare/HASH...HEAD)
|
||||
|
||||
@@ -18,13 +17,12 @@ function getCommits() {
|
||||
set -e
|
||||
PS1="$"
|
||||
|
||||
galeHash=$(git diff gradle.properties | awk '/^-galeCommit =/{print $NF}')
|
||||
paperHash=""
|
||||
paperHash=$(git diff gradle.properties | awk '/^-paperCommit =/{print $NF}')
|
||||
purpurHash=""
|
||||
leavesHash=""
|
||||
|
||||
# Useless params standardize
|
||||
# TEMP=$(getopt --long paper:,gale:,purpur:,leaves: -o "" -- "$@")
|
||||
# TEMP=$(getopt --long paper:,purpur:,leaves: -o "" -- "$@")
|
||||
# eval set -- "$TEMP"
|
||||
while true; do
|
||||
case "$1" in
|
||||
@@ -32,10 +30,6 @@ while true; do
|
||||
paperHash="$2"
|
||||
shift 2
|
||||
;;
|
||||
--gale)
|
||||
galeHash="$2"
|
||||
shift 2
|
||||
;;
|
||||
--purpur)
|
||||
purpurHash="$2"
|
||||
shift 2
|
||||
@@ -51,7 +45,6 @@ while true; do
|
||||
done
|
||||
|
||||
paper=""
|
||||
gale=""
|
||||
purpur=""
|
||||
leaves=""
|
||||
updated=""
|
||||
@@ -59,7 +52,8 @@ logsuffix=""
|
||||
|
||||
# Paper updates
|
||||
if [ -n "$paperHash" ]; then
|
||||
paper=$(getCommits "PaperMC/Paper" "$paperHash" "HEAD")
|
||||
newHash=$(git diff gradle.properties | awk '/^+paperCommit =/{print $NF}')
|
||||
paper=$(getCommits "PaperMC/Paper" "$paperHash" $(echo $newHash | grep . -q && echo $newHash || echo "HEAD"))
|
||||
|
||||
# Updates found
|
||||
if [ -n "$paper" ]; then
|
||||
@@ -68,18 +62,6 @@ if [ -n "$paperHash" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Gale updates
|
||||
if [ -n "$galeHash" ]; then
|
||||
newHash=$(git diff gradle.properties | awk '/^+galeCommit =/{print $NF}')
|
||||
gale=$(getCommits "Dreeam-qwq/Gale" "$galeHash" $(echo $newHash | grep . -q && echo $newHash || echo "HEAD"))
|
||||
|
||||
# Updates found
|
||||
if [ -n "$gale" ]; then
|
||||
updated="${updated:+$updated/}Gale"
|
||||
logsuffix="$logsuffix\n\nGale Changes:\n$gale"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Purpur updates
|
||||
if [ -n "$purpurHash" ]; then
|
||||
purpur=$(getCommits "PurpurMC/Purpur" "$purpurHash" "HEAD")
|
||||
|
||||
Reference in New Issue
Block a user