Skip to content

Commit ae265a9

Browse files
PaulStoffregencmaglie
authored andcommitted
Help 3rd party installers find the hardware path
1 parent 9b519f2 commit ae265a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/processing/app/Base.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static public void main(String args[]) {
120120
File versionFile = getContentFile("lib/version.txt");
121121
if (versionFile.exists()) {
122122
String version = PApplet.loadStrings(versionFile)[0];
123-
if (!version.equals(VERSION_NAME)) {
123+
if (!version.equals(VERSION_NAME) && !version.equals("${version}")) {
124124
VERSION_NAME = version;
125125
RELEASE = true;
126126
}
@@ -129,6 +129,10 @@ static public void main(String args[]) {
129129
e.printStackTrace();
130130
}
131131

132+
// help 3rd party installers find the correct hardware path
133+
Preferences.set("last.ide." + VERSION_NAME + ".hardwarepath", getHardwarePath());
134+
Preferences.set("last.ide." + VERSION_NAME + ".daterun", "" + (new Date()).getTime() / 1000);
135+
132136
// if (System.getProperty("mrj.version") != null) {
133137
// //String jv = System.getProperty("java.version");
134138
// String ov = System.getProperty("os.version");

0 commit comments

Comments
 (0)