HMCL-dev / HMCL-dev/HMCL

[Bug] Windows平台上启动器扩展名为scr时更新会导致程序无法直接启动

Open
#5,941 5 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

问题描述 | Bug Description
背景

近日发现一些整合包打包的HMCL使用scr格式作为扩展名,这些启动器在更新后会导致无法通过双击运行启动。疑似是整合包作者为了避免是由于启动器版本导致的整合包启动出现问题,因此通过这种方式限制了一部分用户使用更新后的启动器,其文档中也描述,如果遇到启动器无法打开需要重新解压整合包。

复现步骤
  1. 更改启动器扩展名为scr,(图标正常显示)
Image
  1. 打开启动器(启动器正常启动
Image

附:任务管理器

Image
  1. 更新启动器
Image
  1. 启动器正常重启
Image
  1. 资源管理器中显示的程序图标丢失
Image
  1. 双击启动时提示"此应用无法在你的电脑上运行"
Image
  1. 使用命令行java -jar ./HMCL-*.src可以正常启动(更新后的启动器)
Image Image
  1. 改回exe扩展名后仍然无法显示图标
Image
  1. 同样无法双击启动
Image
启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File
环境

OS: Windows 11 25H2 26200.8117
Java: Oracle Java 25.0.2
HMCL: 3.12.x

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. First reproduce the Windows 11 flow by renaming the launcher to .scr, updating it, and trying to launch it by double-click; compare this with java -jar behavior and the renamed .exe case. Done means an updated launcher still displays its icon and launches directly from Explorer.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.