mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
Help 3rd party installers find the hardware path
This commit is contained in:
parent
9b519f2fbc
commit
ae265a98b9
@ -120,7 +120,7 @@ public class Base {
|
|||||||
File versionFile = getContentFile("lib/version.txt");
|
File versionFile = getContentFile("lib/version.txt");
|
||||||
if (versionFile.exists()) {
|
if (versionFile.exists()) {
|
||||||
String version = PApplet.loadStrings(versionFile)[0];
|
String version = PApplet.loadStrings(versionFile)[0];
|
||||||
if (!version.equals(VERSION_NAME)) {
|
if (!version.equals(VERSION_NAME) && !version.equals("${version}")) {
|
||||||
VERSION_NAME = version;
|
VERSION_NAME = version;
|
||||||
RELEASE = true;
|
RELEASE = true;
|
||||||
}
|
}
|
||||||
@ -129,6 +129,10 @@ public class Base {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// help 3rd party installers find the correct hardware path
|
||||||
|
Preferences.set("last.ide." + VERSION_NAME + ".hardwarepath", getHardwarePath());
|
||||||
|
Preferences.set("last.ide." + VERSION_NAME + ".daterun", "" + (new Date()).getTime() / 1000);
|
||||||
|
|
||||||
// if (System.getProperty("mrj.version") != null) {
|
// if (System.getProperty("mrj.version") != null) {
|
||||||
// //String jv = System.getProperty("java.version");
|
// //String jv = System.getProperty("java.version");
|
||||||
// String ov = System.getProperty("os.version");
|
// String ov = System.getProperty("os.version");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user