Send URL to github snapshots

This commit is contained in:
Chris H
2025-02-20 14:18:12 -05:00
parent 9054e01273
commit 40882c20d6
4 changed files with 11 additions and 11 deletions

View File

@@ -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();