Skip to content

Conversation

@burningtnt
Copy link
Member

@burningtnt burningtnt commented Oct 27, 2025

仍在调查 MacOS 15 与 26 上的兼容性问题

@burningtnt burningtnt marked this pull request as ready for review October 31, 2025 13:36
@burningtnt
Copy link
Member Author

已完成修复工作,需要请求社区帮助测试是否兼容 MacOS 10 以来的全部版本

@Glavo Glavo requested a review from Copilot November 1, 2025 08:00
Copy link
Contributor

Copilot AI left a 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.

@burningtnt
Copy link
Member Author

@Glavo 我希望能够尽快合并该 PR 并推送稳定版本以解决大量 MacOS 用户无法正确安装陶瓦联机,无法加入由 PCL CE 创建的 Scaffolding 房间的问题。

@Glavo Glavo merged commit 3a30e5b into HMCL-dev:main Nov 2, 2025
2 checks passed
Glavo added a commit to Glavo/HMCL that referenced this pull request Nov 2, 2025
Glavo added a commit that referenced this pull request Nov 3, 2025
#4723
#4750
#4735

---------

Co-authored-by: Burning_TNT <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants