@@ -56,7 +56,7 @@ export class ArduinoSettings implements IArduinoSettings {
56
56
57
57
public get defaultExamplePath ( ) : string {
58
58
if ( os . platform ( ) === "darwin" ) {
59
- return path . join ( this . _arduinoPath , "Arduino.app /Contents/Java/examples" ) ;
59
+ return path . join ( util . resolveMacArduinoAppPath ( this . _arduinoPath ) , "/Contents/Java/examples" ) ;
60
60
} else {
61
61
return path . join ( this . _arduinoPath , "examples" ) ;
62
62
}
@@ -68,15 +68,15 @@ export class ArduinoSettings implements IArduinoSettings {
68
68
69
69
public get defaultPackagePath ( ) : string {
70
70
if ( os . platform ( ) === "darwin" ) {
71
- return path . join ( this . _arduinoPath , "Arduino.app /Contents/Java/hardware" ) ;
71
+ return path . join ( util . resolveMacArduinoAppPath ( this . _arduinoPath ) , "/Contents/Java/hardware" ) ;
72
72
} else { // linux and win32.
73
73
return path . join ( this . _arduinoPath , "hardware" ) ;
74
74
}
75
75
}
76
76
77
77
public get defaultLibPath ( ) : string {
78
78
if ( os . platform ( ) === "darwin" ) {
79
- return path . join ( this . _arduinoPath , "Arduino.app /Contents/Java/libraries" ) ;
79
+ return path . join ( util . resolveMacArduinoAppPath ( this . _arduinoPath ) , "/Contents/Java/libraries" ) ;
80
80
} else { // linux and win32
81
81
return path . join ( this . _arduinoPath , "libraries" ) ;
82
82
}
@@ -85,7 +85,7 @@ export class ArduinoSettings implements IArduinoSettings {
85
85
public get commandPath ( ) : string {
86
86
const platform = os . platform ( ) ;
87
87
if ( platform === "darwin" ) {
88
- return path . join ( this . _arduinoPath , path . normalize ( "Arduino.app /Contents/MacOS/Arduino" ) ) ;
88
+ return path . join ( util . resolveMacArduinoAppPath ( this . _arduinoPath ) , path . normalize ( "/Contents/MacOS/Arduino" ) ) ;
89
89
} else if ( platform === "linux" ) {
90
90
return path . join ( this . _arduinoPath , "arduino" ) ;
91
91
} else if ( platform === "win32" ) {
0 commit comments