[Bug] Windows平台上启动器扩展名为scr时更新会导致程序无法直接启动
Open
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格式作为扩展名,这些启动器在更新后会导致无法通过双击运行启动。疑似是整合包作者为了避免是由于启动器版本导致的整合包启动出现问题,因此通过这种方式限制了一部分用户使用更新后的启动器,其文档中也描述,如果遇到启动器无法打开需要重新解压整合包。
复现步骤
- 更改启动器扩展名为scr,(图标正常显示)
- 打开启动器(启动器正常启动
附:任务管理器
- 更新启动器
- 启动器正常重启
- 资源管理器中显示的程序图标丢失
- 双击启动时提示"此应用无法在你的电脑上运行"
- 使用命令行
java -jar ./HMCL-*.src可以正常启动(更新后的启动器)
- 改回exe扩展名后仍然无法显示图标
- 同样无法双击启动
启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File
环境
OS: Windows 11 25H2 26200.8117
Java: Oracle Java 25.0.2
HMCL: 3.12.x
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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