mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Send URL to github snapshots
This commit is contained in:
@@ -72,7 +72,7 @@ import forge.util.TextUtil;
|
||||
import forge.view.FFrame;
|
||||
import forge.view.FView;
|
||||
|
||||
import static forge.localinstance.properties.ForgeConstants.DAILY_SNAPSHOT_URL;
|
||||
import static forge.localinstance.properties.ForgeConstants.GITHUB_SNAPSHOT_URL;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -246,9 +246,9 @@ public enum FControl implements KeyEventDispatcher {
|
||||
//get version string
|
||||
try {
|
||||
if (isSnapshot && prefs.getPrefBoolean(FPref.CHECK_SNAPSHOT_AT_STARTUP)) {
|
||||
URL url = new URL(DAILY_SNAPSHOT_URL + "version.txt");
|
||||
URL url = new URL(GITHUB_SNAPSHOT_URL + "version.txt");
|
||||
snapsVersion = FileUtil.readFileToString(url);
|
||||
url = new URL(DAILY_SNAPSHOT_URL + "build.txt");
|
||||
url = new URL(GITHUB_SNAPSHOT_URL + "build.txt");
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
snapsTimestamp = simpleDateFormat.parse(FileUtil.readFileToString(url));
|
||||
buildTimeStamp = BuildInfo.getTimestamp();
|
||||
|
||||
Reference in New Issue
Block a user