在 Manifest 文件中添加 Enable-Final-Field-Mutation 条目 (#4561)
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user