chore: win 7z

This commit is contained in:
hstyi
2025-02-21 22:24:23 +08:00
committed by hstyi
parent 28fe4c725f
commit 1f392c52a1
2 changed files with 15 additions and 1 deletions

View File

@@ -407,6 +407,16 @@ tasks.register("dist") {
workingDir = layout.buildDirectory.dir("jpackage/images/win-msi.image/").get().asFile
}
// 7z
exec {
commandLine(
"7z", "a", "-mx=9", "-m0=lzma2", "-mmt=on", "-bso0",
distributionDir.file("${finalFilenameWithoutExtension}.7z").asFile.absolutePath,
project.name.uppercaseFirstChar()
)
workingDir = layout.buildDirectory.dir("jpackage/images/win-msi.image/").get().asFile
}
// msi
exec {
commandLine(