@@ -73,10 +73,10 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
73
73
}
74
74
75
75
buildProperties ["build.core" ] = ctx .BuildCore
76
- buildProperties ["build.core.path" ] = filepath . Join (actualPlatform . Folder , "cores" , buildProperties ["build.core" ])
77
- buildProperties ["build.system.path" ] = filepath . Join (actualPlatform . Folder , "system" )
78
- buildProperties ["runtime.platform.path" ] = targetPlatform .Folder
79
- buildProperties ["runtime.hardware.path" ] = filepath . Join (targetPlatform . Folder , ".." )
76
+ buildProperties ["build.core.path" ] = actualPlatform . InstallDir . Join ("cores" , buildProperties ["build.core" ]). String ( )
77
+ buildProperties ["build.system.path" ] = actualPlatform . InstallDir . Join ("system" ). String ( )
78
+ buildProperties ["runtime.platform.path" ] = targetPlatform .InstallDir . String ()
79
+ buildProperties ["runtime.hardware.path" ] = targetPlatform . InstallDir . Join (".." ). String ( )
80
80
buildProperties ["runtime.ide.version" ] = ctx .ArduinoAPIVersion
81
81
buildProperties ["runtime.ide.path" ] = exPath
82
82
buildProperties ["build.fqbn" ] = ctx .FQBN .String ()
@@ -95,7 +95,7 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
95
95
} else {
96
96
variantPlatform = targetPlatform
97
97
}
98
- buildProperties ["build.variant.path" ] = filepath . Join (variantPlatform . Folder , "variants" , variant )
98
+ buildProperties ["build.variant.path" ] = variantPlatform . InstallDir . Join ("variants" , variant ). String ( )
99
99
}
100
100
101
101
for _ , tool := range ctx .AllTools {
0 commit comments