mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
Move update check centralized
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user