在 Manifest 文件中添加 Enable-Final-Field-Mutation 条目 (#4561)

This commit is contained in:
Glavo
2025-11-30 15:40:06 +08:00
committed by GitHub
parent 8351ee4094
commit 6fa6f23ad4

View File

@@ -206,7 +206,8 @@ tasks.shadowJar {
"Main-Class" to "org.jackhuang.hmcl.Main", "Main-Class" to "org.jackhuang.hmcl.Main",
"Multi-Release" to "true", "Multi-Release" to "true",
"Add-Opens" to addOpens.joinToString(" "), "Add-Opens" to addOpens.joinToString(" "),
"Enable-Native-Access" to "ALL-UNNAMED" "Enable-Native-Access" to "ALL-UNNAMED",
"Enable-Final-Field-Mutation" to "ALL-UNNAMED",
) )
if (launcherExe.isNotBlank()) { if (launcherExe.isNotBlank()) {