mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
Fixed renamed app doesn't compile on macosx
This commit is contained in:
parent
e9f69129b4
commit
135900883d
@ -222,10 +222,9 @@ public class Preferences {
|
|||||||
|
|
||||||
// set some runtime constants (not saved on preferences file)
|
// set some runtime constants (not saved on preferences file)
|
||||||
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
|
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
|
||||||
String idePath = System.getProperty("user.dir");
|
File hardwareFolder = Base.getHardwareFolder();
|
||||||
if (Base.isMacOS())
|
table.put("runtime.hardware.path", hardwareFolder.getAbsolutePath());
|
||||||
idePath += "/Arduino.app/Contents/Resources/Java";
|
table.put("runtime.ide.path", hardwareFolder.getParentFile().getAbsolutePath());
|
||||||
table.put("runtime.ide.path", idePath);
|
|
||||||
table.put("runtime.ide.version", "" + Base.REVISION);
|
table.put("runtime.ide.version", "" + Base.REVISION);
|
||||||
|
|
||||||
// check for platform-specific properties in the defaults
|
// check for platform-specific properties in the defaults
|
||||||
|
Loading…
x
Reference in New Issue
Block a user