Skip to content

Commit e1ee779

Browse files
committed
Added property 'runtime.platform.path'
1 parent dc31008 commit e1ee779

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

commands/upload/upload.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func run(command *cobra.Command, args []string) {
194194
uploadProperties.Merge(referencedPlatformRelease.Properties)
195195
}
196196
uploadProperties.Merge(platformRelease.Properties)
197-
197+
uploadProperties.Merge(platformRelease.RuntimeProperties())
198198
uploadProperties.Merge(boardProperties)
199199

200200
uploadToolProperties := uploadProperties.SubTree("tools." + uploadTool.Name)

cores/cores.go

+7
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ func (release *PlatformRelease) GetOrCreateBoard(boardID string) *Board {
161161
return board
162162
}
163163

164+
// RuntimeProperties returns the runtime properties for this PlatformRelease
165+
func (release *PlatformRelease) RuntimeProperties() properties.Map {
166+
return properties.Map{
167+
"runtime.platform.path": release.Folder,
168+
}
169+
}
170+
164171
func (release *PlatformRelease) String() string {
165172
return release.Platform.String() + "@" + release.Version
166173
}

0 commit comments

Comments
 (0)