diff --git a/docs/release-notes.md b/docs/release-notes.md index bbd41c1..e4bf885 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -4,7 +4,7 @@ Changes: - +- Add support for AppleHV images ## stream-metadata-go 0.4.3 (2023-06-28) diff --git a/release/release.go b/release/release.go index 5864260..6691d34 100644 --- a/release/release.go +++ b/release/release.go @@ -53,6 +53,7 @@ type Arch struct { // Media contains release details for various platforms type Media struct { Aliyun *PlatformAliyun `json:"aliyun"` + AppleHV *PlatformBase `json:"applehv"` Aws *PlatformAws `json:"aws"` Azure *PlatformBase `json:"azure"` AzureStack *PlatformBase `json:"azurestack"` diff --git a/release/translate.go b/release/translate.go index d96c869..ebc0b8e 100644 --- a/release/translate.go +++ b/release/translate.go @@ -58,6 +58,13 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch { } } + if releaseArch.Media.AppleHV != nil { + artifacts["applehv"] = stream.PlatformArtifacts{ + Release: rel.Release, + Formats: mapFormats(releaseArch.Media.AppleHV.Artifacts), + } + } + if releaseArch.Media.Aws != nil { artifacts["aws"] = stream.PlatformArtifacts{ Release: rel.Release,