Skip to content

Commit 0c39b27

Browse files
committed
Move update check centralized
1 parent da29242 commit 0c39b27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ tasks.withType<JavaExec> {
1818
systemProperty("processing.version", version)
1919
systemProperty("processing.revision", "1296")
2020
systemProperty("processing.contributions.source", "https://contributions-preview.processing.org/contribs.txt")
21+
systemProperty("processing.download.page", "https://processing.org/download/")
22+
systemProperty("processing.download.latest", "https://processing.org/download/latest.txt")
2123
}
2224

2325

app/src/processing/app/UpdateCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
public class UpdateCheck {
5757
private final Base base;
5858

59-
static private final String DOWNLOAD_URL = "https://processing.org/download/";
60-
static private final String LATEST_URL = "https://processing.org/download/latest.txt";
59+
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
60+
static private final String LATEST_URL = System.getProperty("processing.download.latest","https://processing.org/download/latest.txt");
6161

6262
static private final long ONE_DAY = 24 * 60 * 60 * 1000;
6363

0 commit comments

Comments
 (0)