Skip to content

Commit 88e9da8

Browse files
Help 3rd party installers find the hardware path
1 parent b0332f0 commit 88e9da8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/processing/app/Base.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static public void main(String args[]) throws Exception {
132132
File versionFile = getContentFile("lib/version.txt");
133133
if (versionFile.exists()) {
134134
String version = PApplet.loadStrings(versionFile)[0];
135-
if (!version.equals(VERSION_NAME)) {
135+
if (!version.equals(VERSION_NAME) && !version.equals("${version}")) {
136136
VERSION_NAME = version;
137137
RELEASE = true;
138138
}
@@ -141,6 +141,10 @@ static public void main(String args[]) throws Exception {
141141
e.printStackTrace();
142142
}
143143

144+
// help 3rd party installers find the correct hardware path
145+
Preferences.set("last.ide." + VERSION_NAME + ".hardwarepath", getHardwarePath());
146+
Preferences.set("last.ide." + VERSION_NAME + ".daterun", "" + (new Date()).getTime() / 1000);
147+
144148
// if (System.getProperty("mrj.version") != null) {
145149
// //String jv = System.getProperty("java.version");
146150
// String ov = System.getProperty("os.version");

0 commit comments

Comments
 (0)