diff --git a/dist/index.js b/dist/index.js index aafcec4f..161684f6 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index e550dbc2..2ae9c06a 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/dist/licenses.txt b/dist/licenses.txt index 497a23d4..138f7f39 100644 Binary files a/dist/licenses.txt and b/dist/licenses.txt differ diff --git a/src/model/image-tag.ts b/src/model/image-tag.ts index 2b9fd910..2e416b71 100644 --- a/src/model/image-tag.ts +++ b/src/model/image-tag.ts @@ -58,6 +58,7 @@ class ImageTag { android: 'android', ios: 'ios', tvos: 'appletv', + visionos: 'visionos', facebook: 'facebook', }; } @@ -82,8 +83,21 @@ class ImageTag { version: string, providerStrategy: string, ): string { - const { generic, webgl, mac, windows, windowsIl2cpp, wsaPlayer, linux, linuxIl2cpp, android, ios, tvos, facebook } = - ImageTag.targetPlatformSuffixes; + const { + generic, + webgl, + mac, + windows, + windowsIl2cpp, + wsaPlayer, + linux, + linuxIl2cpp, + android, + ios, + tvos, + visionos, + facebook, + } = ImageTag.targetPlatformSuffixes; const [major, minor] = version.split('.').map((digit) => Number(digit)); @@ -141,6 +155,12 @@ class ImageTag { } return tvos; + case Platform.types.VisionOS: + if (process.platform !== 'darwin') { + throw new Error(`visionOS can only be built on a macOS base OS`); + } + + return visionos; case Platform.types.Switch: return windows; diff --git a/src/model/platform.ts b/src/model/platform.ts index 768e51b4..ed1631aa 100644 --- a/src/model/platform.ts +++ b/src/model/platform.ts @@ -16,6 +16,7 @@ class Platform { PS4: 'PS4', XboxOne: 'XboxOne', tvOS: 'tvOS', + VisionOS: 'VisionOS', Switch: 'Switch', // Unsupported