-
Notifications
You must be signed in to change notification settings - Fork 780
修复 Terracotta 在 MacOS 上的兼容性问题 #4723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
已完成修复工作,需要请求社区帮助测试是否兼容 MacOS 10 以来的全部版本 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request enhances the Terracotta installation process on macOS and improves state management in the TerracottaManager. Key improvements include better error handling, safer package installation, and more robust state transitions.
- Improved macOS installer with better error handling, temp file cleanup, and exit code validation
- Enhanced exception handling for cancellation scenarios during installation
- Simplified state management by using atomic compareAndSet instead of direct setState for safer concurrent operations
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| MacOSProvider.java | Enhanced installer to use temp directory, validate osascript availability, check exit codes, and clean up temp files |
| TerracottaManager.java | Added CancellationException handling and replaced setState with compareAndSet for thread-safe state transitions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
HMCL/src/main/java/org/jackhuang/hmcl/terracotta/provider/MacOSProvider.java
Outdated
Show resolved
Hide resolved
|
@Glavo 我希望能够尽快合并该 PR 并推送稳定版本以解决大量 MacOS 用户无法正确安装陶瓦联机,无法加入由 PCL CE 创建的 Scaffolding 房间的问题。 |
Co-authored-by: Glavo <[email protected]> Co-authored-by: Copilot <[email protected]>
#4723 #4750 #4735 --------- Co-authored-by: Burning_TNT <[email protected]> Co-authored-by: Copilot <[email protected]>
仍在调查 MacOS 15 与 26 上的兼容性问题