simon ballantyne
12/15/2021, 4:59 PMrcd27
12/16/2021, 6:14 AMall-in-one-zip
file.
Here is the code from build.gradle.kts
:
tasks.register<Copy>("createDistributableWithExtras") {
dependsOn(":desktop:createDistributable")
from("../your")
from("../stuff")
into(layout.buildDirectory.dir("./compose/binaries/main/app/desktop/model"))
}
tasks.register<Zip>("prepareZip") {
dependsOn(":desktop:createDistributableWithExtras")
from(layout.buildDirectory.dir("./compose/binaries/main/app/desktop"))
archiveFileName.set("your-project-${rootProject.version}.zip")
destinationDirectory.set(file("./build"))
}
rcd27
12/16/2021, 6:14 AMprepareZip
gradle commandsimon ballantyne
12/16/2021, 8:06 AMcompose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
windows{
iconFile.set(project.file("pathto/1612983736419.ico"))
menuGroup = "supderDuperApp"
}
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "supderDuperApp"
packageVersion = "1.0.0"
}
}
}
Im using the above to create the msi, and it is wrapping the resources dir into the packaged .jar file. Unfortunately I want it to package as part of the msi and to push it into the app/resources dirrcd27
12/16/2021, 8:14 AMsimon ballantyne
12/16/2021, 8:31 AMAlexander Kurasov[JB]
12/16/2021, 8:35 AM