Skip to content

[release/3.10] 修复 Cleanroom 本地安装完成后会删除安装器的问题#5347

Merged
Glavo merged 1 commit into
HMCL-dev:release/3.10from
Glavo:backport/3.10/5257
Jan 28, 2026
Merged

[release/3.10] 修复 Cleanroom 本地安装完成后会删除安装器的问题#5347
Glavo merged 1 commit into
HMCL-dev:release/3.10from
Glavo:backport/3.10/5257

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Jan 28, 2026

Copy link
Copy Markdown
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 PR adjusts the Cleanroom installation cleanup logic so that locally provided installers are no longer deleted after installation, aligning behavior with the intent described in HMCL PR #5257.

Changes:

  • Update CleanroomInstallTask.postExecute() to only delete the installer file when it was downloaded from a remote source (remote != null), preserving user-supplied local installer JARs.
  • Keep the temporary installer cleanup for remote installs (created via Files.createTempFile) to avoid leaving temporary files behind.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo changed the base branch from main to release/3.10 January 28, 2026 13:36
@Glavo Glavo merged commit 941e7cd into HMCL-dev:release/3.10 Jan 28, 2026
8 checks passed
@Glavo Glavo deleted the backport/3.10/5257 branch January 28, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants