diff --git a/dist/index.js b/dist/index.js index 28975040..591c3043 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 42829bab..25834821 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/image-tag.ts b/src/model/image-tag.ts index c0a47ddb..485abb6c 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-setup/setup-mac.ts b/src/model/platform-setup/setup-mac.ts index a12e04bb..962fba0f 100644 --- a/src/model/platform-setup/setup-mac.ts +++ b/src/model/platform-setup/setup-mac.ts @@ -103,6 +103,9 @@ class SetupMac { case 'tvOS': moduleArgument.push('--module', 'appletv'); break; + case 'VisionOS': + moduleArgument.push('--module', 'visionos'); + break; case 'StandaloneOSX': moduleArgument.push('--module', 'mac-il2cpp'); break; 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