Set version to v1.0 beta

Prepare code for a release independent of Amidst
master
Treer 2018-03-24 23:21:44 +11:00
parent 8bf76b88b8
commit 76d24847cc
5 changed files with 13 additions and 9 deletions

View File

@ -26,6 +26,10 @@ public class AmidstVersion {
this.minor = minor;
this.preReleaseSuffix = preReleaseSuffix;
}
public static String getName() {
return FeatureToggles.MINETEST_SUPPORT ? "Amidstest" : "Amidst";
}
public int getMajor() {
return major;
@ -60,7 +64,7 @@ public class AmidstVersion {
}
public String createLongVersionString() {
return FeatureToggles.MINETEST_SUPPORT ? "Amidstest " : "Amidst ";
return getName() + " " + createVersionString();
}
public String createVersionString() {

View File

@ -91,7 +91,7 @@ public enum CrashWindow {
@CalledOnlyBy(AmidstThread.EDT)
private JTextField createReportingTextField() {
JTextField result = new JTextField("https://github.com/toolbox4minecraft/amidst/issues/new");
JTextField result = new JTextField("https://github.com/treer/amidstest/issues/new");
result.setEditable(false);
result.selectAll();
return result;

View File

@ -60,7 +60,7 @@ public class UpdatePrompt {
}
}
private static final String TITLE = "Amidst Updater";
private static final String TITLE = AmidstVersion.getName() + " Updater";
private static final String NO_UPDATES_AVAILABLE = "There are no updates available.";
private static final Runnable NOOP = () -> {
@ -130,7 +130,7 @@ public class UpdatePrompt {
@CalledOnlyBy(AmidstThread.EDT)
private String createMessage(String message, AmidstVersion newVersion, String versionType) {
return "A new " + versionType + " version of Amidst is available:\n" + "Current Version: "
return "A new " + versionType + " version of " + AmidstVersion.getName() + " is available:\n" + "Current Version: "
+ currentVersion.createVersionString() + "\n" + "New Version: " + newVersion.createVersionString()
+ "\n" + "Do you want to upgrade?" + createMessageSuffix(message);
}

View File

@ -1,7 +1,7 @@
project.build.sourceEncoding=UTF-8
amidst.build.jdk.version=1.8
amidst.build.filename=amidst-v4-3-beta2
amidst.build.filename=amidstest-v1-0-beta
amidst.version.major=4
amidst.version.minor=3
amidst.version.preReleaseSuffix=beta2
amidst.version.major=1
amidst.version.minor=0
amidst.version.preReleaseSuffix=beta

View File

@ -7,7 +7,7 @@ import amidst.AmidstVersion;
import amidst.gui.main.UpdateInformationJson;
public class GenerateUpdateInformationJson {
private static final String DOWNLOAD_URL = "https://github.com/treer/amidst/releases";
private static final String DOWNLOAD_URL = "https://github.com/treer/amidstest/releases";
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
private final AmidstVersion version;