1.12: Added Factory Hopper bottom item handler.

This commit is contained in:
stfwi 2020-02-13 21:16:35 +01:00
parent 35b1785e9c
commit 123319eaf0
6 changed files with 18 additions and 14 deletions

View file

@ -233,15 +233,10 @@
const expected_commit_version = modversion.replace(/[-]/g,"") + "-mc" + mcversion;
if(!gittags.filter(function(s){return s.indexOf(expected_commit_version)>=0}).length) fails.push("No tag version on this commit matching the gradle properties version (should be v" + expected_commit_version + ").");
if(((!constants.options.without_ref_repository_check)) && (git_remote.replace(/[\s]/g,"").indexOf(constants.reference_repository() + "(push)") < 0)) fails.push("Not the reference repository.");
if((git_branch != "develop") && (git_branch != "master")) {
fails.push("No valid branch for dist. (branch:'"+git_branch+"')");
} else if((git_branch == "develop") && (modversion.replace(/[^ab]/g,"")=="")) {
fails.push("Cannot make release dist on develop branch.");
} else if((git_branch == "master") && (modversion.replace(/[^ab]/g,"")!="")) {
fails.push("Cannot make beta dist on master branch.");
if(git_branch != "develop") {
fails.push("Not a valid branch for dist. (branch:'"+git_branch+"', must be 'develop')");
}
if(git_diff !== "") fails.push("Not everything committed to the GIT repository.");
// if((!fs.isfile("signing.jks")) || (!fs.isfile("signing.properties"))) fails.push("Jar signing files missing.");
return fails;
};