Adds build support for tvOS in macos-latest#709
Conversation
📝 WalkthroughWalkthroughThe changes update platform support and module argument mapping for tvOS builds. tvOS builds are now permitted on both Windows and macOS base operating systems, and the associated error message is updated. Additionally, the module argument for tvOS is changed from Changes
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/model/image-tag.ts (1)
138-141: Simplify tvOS platform check and error messageThe platform check and error text can be clearer and more maintainable:
- Extract supported platforms into a constant, e.g.
const SUPPORTED_TVOS_PLATFORMS = ['win32', 'darwin'];- Update the error message for consistency and remove “base OS” redundancy:
- if (process.platform !== 'win32' && process.platform !== 'darwin') { - throw new Error(`tvOS can only be built on Windows or macOS base OS`); - } + if (!SUPPORTED_TVOS_PLATFORMS.includes(process.platform)) { + throw new Error(`tvOS builds are only supported on Windows or macOS.`); + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (3)
dist/index.jsis excluded by!**/dist/**dist/index.js.mapis excluded by!**/dist/**,!**/*.mapdist/licenses.txtis excluded by!**/dist/**
📒 Files selected for processing (2)
src/model/image-tag.ts(1 hunks)src/model/platform-setup/setup-mac.ts(1 hunks)
🔇 Additional comments (1)
src/model/platform-setup/setup-mac.ts (1)
103-105: Correct mapping of tvOS Unity module parameterThe change from
--module tvosto--module appletvnow matches Unity Hub’s expected argument for the Apple TV target and is consistent withImageTagsuffix mappings. No further edits needed here.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #709 +/- ##
========================================
Coverage 37.12% 37.12%
========================================
Files 77 77
Lines 3157 3157
Branches 659 623 -36
========================================
Hits 1172 1172
- Misses 1838 1985 +147
+ Partials 147 0 -147
🚀 New features to boost your workflow:
|

Changes
Successful Workflow Run Link
From my personal plugin repo, using my fork, you can see it successfully building for tvOS in macos-latest and later uploading it to Testflight: 🙌
https://github.com/lupidan/apple-signin-unity/actions/runs/15507807508/job/43664816746
Checklist
code of conduct
Summary by CodeRabbit
New Features
Bug Fixes
Documentation