Write build information to "version" file and auto-fill error forms.

- Maven version and build date are now written to "res/version".
- The GitHub Issues form is auto-filled with error information if available. (reference: fluddokt/opsu@53fe3d9)

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-03-06 15:55:15 -05:00
parent 6cd6938ea5
commit 3df08e5357
4 changed files with 60 additions and 18 deletions

View File

@@ -26,7 +26,6 @@ import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.URI;
import java.net.URISyntaxException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
@@ -71,19 +70,10 @@ public class Options {
public static final String FONT_NAME = "kochi-gothic.ttf";
/** Repository address. */
public static URI REPOSITORY_URI;
public static URI REPOSITORY_URI = URI.create("https://github.com/itdelatrisu/opsu");
/** Issue reporting address. */
public static URI ISSUES_URI;
static {
try {
REPOSITORY_URI = new URI("https://github.com/itdelatrisu/opsu");
ISSUES_URI = new URI("https://github.com/itdelatrisu/opsu/issues/new");
} catch (URISyntaxException e) {
Log.error("Problem loading URIs.", e);
}
}
public static String ISSUES_URL = "https://github.com/itdelatrisu/opsu/issues/new?title=%s&body=%s";
/** The beatmap directory. */
private static File beatmapDir;