Allows macos as a build platform for tvOS

This commit is contained in:
Daniel Lupiañez Casares 2025-06-07 14:24:29 +02:00
parent a7a3b838ac
commit 7c273c4a12
3 changed files with 4 additions and 0 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -136,6 +136,10 @@ class ImageTag {
case Platform.types.XboxOne:
return windows;
case Platform.types.tvOS:
if (process.platform !== 'win32' && process.platform !== 'darwin') {
throw new Error(`tvOS can only be built on Windows or macOS base OS`);
}
return tvos;
case Platform.types.Switch:
return windows;