Skip to content

Commit fdfea8e

Browse files
committed
Changed field name Folder->InstallDir
1 parent 5421327 commit fdfea8e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

setup_build_properties.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
7373
}
7474

7575
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()
8080
buildProperties["runtime.ide.version"] = ctx.ArduinoAPIVersion
8181
buildProperties["runtime.ide.path"] = exPath
8282
buildProperties["build.fqbn"] = ctx.FQBN.String()
@@ -95,7 +95,7 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
9595
} else {
9696
variantPlatform = targetPlatform
9797
}
98-
buildProperties["build.variant.path"] = filepath.Join(variantPlatform.Folder, "variants", variant)
98+
buildProperties["build.variant.path"] = variantPlatform.InstallDir.Join("variants", variant).String()
9999
}
100100

101101
for _, tool := range ctx.AllTools {

target_board_resolver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func (s *TargetBoardResolver) Run(ctx *types.Context) error {
5757
core = core[strings.Index(core, ":")+1:]
5858

5959
if ctx.Verbose {
60-
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_BOARD, targetBoard.BoardId, targetPlatform.Folder)
61-
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_CORE, core, actualPlatform.Folder)
60+
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_BOARD, targetBoard.BoardId, targetPlatform.InstallDir)
61+
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_CORE, core, actualPlatform.InstallDir)
6262
}
6363

6464
ctx.BuildCore = core

0 commit comments

Comments
 (0)