theapache64
09/06/2021, 7:07 PMrunDistributable
. How do I get the crashlog in this case?spierce7
09/06/2021, 7:11 PMtheapache64
09/06/2021, 7:16 PMapp folder
here?spierce7
09/06/2021, 7:32 PMinspect contents
spierce7
09/06/2021, 7:32 PMtheapache64
09/06/2021, 7:34 PMspierce7
09/06/2021, 7:35 PMinspect contents
itās show package contents
theapache64
09/06/2021, 7:37 PMspierce7
09/06/2021, 7:37 PMspierce7
09/06/2021, 7:39 PMtheapache64
09/06/2021, 7:39 PMtheapache64
09/06/2021, 7:41 PMContents/MacOS/<app name>
spierce7
09/06/2021, 7:41 PMtheapache64
09/06/2021, 7:42 PMspierce7
09/06/2021, 7:43 PMbugsnag.addCallback { report ->
val logString = logHandler.logs.joinToString(separator = "\n")
report.addToTab("logs", "log", logString)
}
theapache64
09/06/2021, 7:49 PMspierce7
09/06/2021, 7:50 PMtheapache64
09/06/2021, 7:50 PMspierce7
09/06/2021, 7:50 PMspierce7
09/06/2021, 7:51 PMappResourcesRootDir
theapache64
09/06/2021, 7:51 PMspierce7
09/06/2021, 7:51 PMcompose.desktop {
application {
mainClass = "com.blahblah.MainKt"
jvmArgs += listOf("-Xmx2G")
nativeDistributions {
includeAllModules = true
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageVersion = versionString
packageName = "Blah Blah"
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
spierce7
09/06/2021, 7:52 PMspierce7
09/06/2021, 7:53 PMapp
gradle moduleās build.gradle
file.
That makes my root resources
directory <project root>/app/resources
spierce7
09/06/2021, 7:54 PMcommon
resources for all platforms, but also allow you to ship platform specific resources.
If you add any files you want to ship with your application in the <resource root>/common/
folder, they will be shipped with all platforms.spierce7
09/06/2021, 7:55 PMval resourceRoot = File(System.getProperty("compose.application.resources.dir"))
spierce7
09/06/2021, 7:55 PMtheapache64
09/06/2021, 7:56 PMspierce7
09/06/2021, 7:56 PMapk-tool.jar
file, but that would be a way you could access it in a consistent way across app build types.spierce7
09/06/2021, 7:58 PMProcessBuilder
?theapache64
09/06/2021, 7:59 PMjar
file.spierce7
09/06/2021, 8:01 PMtheapache64
09/06/2021, 8:01 PMspierce7
09/06/2021, 8:02 PMtheapache64
09/06/2021, 8:02 PMspierce7
09/06/2021, 8:03 PMtheapache64
09/06/2021, 8:03 PMtheapache64
09/06/2021, 8:03 PMspierce7
09/06/2021, 8:04 PMtheapache64
09/10/2021, 3:53 PMPath("myDir")
in non-dmg build, it was referring to execution-path/myDir
but in dmg/app build, it was pointing to /myDir
(root) š
since it was a read-only dir, i couldnāt create files in it. thatās why i was getting crash.spierce7
09/10/2021, 3:56 PMspierce7
09/10/2021, 3:56 PMspierce7
09/10/2021, 3:56 PMspierce7
09/10/2021, 3:56 PMtheapache64
09/10/2021, 3:57 PMspierce7
09/10/2021, 3:57 PMspierce7
09/10/2021, 3:57 PMspierce7
09/10/2021, 3:58 PMtheapache64
09/10/2021, 4:03 PMappResourcesRootDir
if it can help me avoid the
this::class.java.classLoader.getResourceAsStream
to copy the resources.theapache64
09/10/2021, 4:04 PMappResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
,
System.getProperty("compose.application.resources.dir")
was returning a same path š¤theapache64
09/10/2021, 4:09 PMappResourcesRootDir
would be helpful in my situation since its a desktop only appluen
09/13/2021, 9:56 AMtheapache64
09/13/2021, 9:57 AM