fix: Rename bundles to archives in artifact bundle index

This commit is contained in:
Shibo Lyu 2025-10-05 16:01:45 +08:00
parent 45db20f487
commit eafe2a2b94
3 changed files with 4 additions and 4 deletions

View file

@ -225,7 +225,7 @@ class ArtifactBundleBuilder {
let index = ArtifactBundleIndex(
schemaVersion: "1.0",
bundles: bundles
archives: bundles
)
let encoder = JSONEncoder()

View file

@ -28,7 +28,7 @@ struct ArtifactVariant: Codable {
/// Represents the .artifactbundleindex file structure
struct ArtifactBundleIndex: Codable {
let schemaVersion: String
let bundles: [Bundle]
let archives: [Bundle] // The proposal says it's "bundles" but the actual implementation uses "archives"
}
struct Bundle: Codable {