Merge 1.16 into 1.18
This commit is contained in:
commit
709ba2d4f7
|
|
@ -39,6 +39,11 @@ allprojects {
|
||||||
def dirtyMarker = grgit.status().clean ? "" : ".dirty"
|
def dirtyMarker = grgit.status().clean ? "" : ".dirty"
|
||||||
def commitHashMarker = details.commitDistance > 0 ? ("." + details.gitHash) : ""
|
def commitHashMarker = details.commitDistance > 0 ? ("." + details.gitHash) : ""
|
||||||
def preMarker = (details.commitDistance > 0 || !details.isCleanTag) ? ("-beta." + details.commitDistance) : ""
|
def preMarker = (details.commitDistance > 0 || !details.isCleanTag) ? ("-beta." + details.commitDistance) : ""
|
||||||
|
if(preMarker.length() > 0) {
|
||||||
|
// bump to next patch release
|
||||||
|
def versionParts = baseVersion.tokenize(".")
|
||||||
|
baseVersion = "${versionParts[0]}.${versionParts[1]}.${versionParts[2].toInteger() + 1}"
|
||||||
|
}
|
||||||
def versionString = "${baseVersion}${preMarker}+mc${minecraft_version}${commitHashMarker}${dirtyMarker}"
|
def versionString = "${baseVersion}${preMarker}+mc${minecraft_version}${commitHashMarker}${dirtyMarker}"
|
||||||
version = versionString
|
version = versionString
|
||||||
archivesBaseName = rootProject.archives_base_name + '-' + project.name
|
archivesBaseName = rootProject.archives_base_name + '-' + project.name
|
||||||
|
|
@ -230,4 +235,6 @@ configure(subprojects.findAll {it.name == "forge" || it.name == "fabric"}) {
|
||||||
publishToModSites.dependsOn(tasks.modrinth)
|
publishToModSites.dependsOn(tasks.modrinth)
|
||||||
publishToModSites.dependsOn(tasks.curseforge)
|
publishToModSites.dependsOn(tasks.curseforge)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println "ModernFix: " + version
|
||||||
|
|
@ -21,12 +21,19 @@ cd mfix
|
||||||
# gather version list
|
# gather version list
|
||||||
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
|
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
|
||||||
|
|
||||||
|
last_released_version=""
|
||||||
do_release() {
|
do_release() {
|
||||||
echo "will now make release for $1"
|
echo "will now make release for $1"
|
||||||
git checkout $1 &>/dev/null || git checkout -b $1 &>/dev/null
|
git checkout $1 &>/dev/null || git checkout -b $1 &>/dev/null
|
||||||
echo "we think the current tag is $(git describe --tags --abbrev=0)"
|
current_tag=$(git describe --tags --abbrev=0)
|
||||||
|
echo "we think the current tag is $current_tag"
|
||||||
echo "the current commit head is $(git rev-parse HEAD)"
|
echo "the current commit head is $(git rev-parse HEAD)"
|
||||||
read -p "new tag name: " tag_name
|
old_version_specifier=$(echo $current_tag | awk -F+ '{print $2}')
|
||||||
|
read -e -p "new tag name (${old_version_specifier}): " -i "${last_released_version}" tag_name
|
||||||
|
if [[ $tag_name != *"+"* ]]; then
|
||||||
|
tag_name=${tag_name}+${old_version_specifier}
|
||||||
|
fi
|
||||||
|
last_released_version=$(echo $tag_name | awk -F+ '{print $1}')
|
||||||
git tag -a $tag_name -m "$tag_name"
|
git tag -a $tag_name -m "$tag_name"
|
||||||
git push --tags
|
git push --tags
|
||||||
gh release create $tag_name --target $1 --title "$tag_name" --notes ""
|
gh release create $tag_name --target $1 --title "$tag_name" --notes ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user