Casey Brooks
06/11/2021, 3:18 PMAbstractJPackageTask
in my build.gradle.kts.
but it still doesn’t seem to be workingNik
06/11/2021, 3:29 PM.sh
scripts with my .dmg
so that the application can invoke those files, unsure how to include them from the build.gradle.kts
if you’ve had any success with something like that yetCasey Brooks
06/11/2021, 3:35 PMProcessBuilder
Nik
06/11/2021, 3:36 PMCasey Brooks
06/11/2021, 3:36 PMMichael Paus
06/11/2021, 5:37 PMCasey Brooks
06/11/2021, 6:33 PMtasks.withType<AbstractJPackageTask>().all {
freeArgs.add("--file-associations")
freeArgs.add(project.file("tdlx.properties").absolutePath)
}
and this in that file
mime-type=application/vnd.sqlite3
extension=tdlx
description=Tidal Game Document
I’ve verified the build is finding the file and it looks like it’s being added to whatever Gradle is doing, as I see the args added to build/compose/tmp/packageDmg.args.txt
. But after installing the DMG, it’s still not able to open the file with my app. But I’ve never made any other desktop apps so I really don’t know if this is something I’m doing wrong, or if there’s something with how Compose is running jpackage that’s the problemMichael Paus
06/11/2021, 6:57 PMCasey Brooks
06/11/2021, 8:39 PM--file-associations
flag working, at least on Mac (I haven’t investigated other targets)