Move update check centralized

This commit is contained in:
Stef Tervelde
2024-12-19 10:44:13 +01:00
parent da29242cf4
commit 0c39b27f37
2 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ tasks.withType<JavaExec> {
systemProperty("processing.version", version)
systemProperty("processing.revision", "1296")
systemProperty("processing.contributions.source", "https://contributions-preview.processing.org/contribs.txt")
systemProperty("processing.download.page", "https://processing.org/download/")
systemProperty("processing.download.latest", "https://processing.org/download/latest.txt")
}

View File

@@ -56,8 +56,8 @@ import processing.core.PApplet;
public class UpdateCheck {
private final Base base;
static private final String DOWNLOAD_URL = "https://processing.org/download/";
static private final String LATEST_URL = "https://processing.org/download/latest.txt";
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
static private final String LATEST_URL = System.getProperty("processing.download.latest","https://processing.org/download/latest.txt");
static private final long ONE_DAY = 24 * 60 * 60 * 1000;