File tree Expand file tree Collapse file tree
composeApp/src/desktopMain/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,10 +45,14 @@ class CustomDirectoryDiscovery:DiscoveryDirectoryProvider {
4545 else " ${osName.name.lowercase()} -${SystemUtil .getOsInfo().arch} "
4646 }
4747
48- private fun getArchName ():String {
49- val arch = SystemUtil .getOsInfo().arch
50- return if (arch == " amd64" ) " x86"
51- else arch
48+ private fun getArchName ():String {
49+ System .getProperty(" os.arch" ).lowercase().let {
50+ return when {
51+ " x86" in it || " x64" in it || " amd64" in it -> " x86"
52+ " arm" in it || " aarch" in it -> " arm64"
53+ else -> " x86"
54+ }
55+ }
5256 }
5357
5458 override fun supported (): Boolean {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fun main() {
4343 launchErrorCatcher()
4444 printSystemInfo()
4545 Runtime .getRuntime().addShutdownHook(Thread {
46- println (" Performing cleanup before exiting..." )
46+ log.info (" Performing cleanup before exiting..." )
4747 Init .stop()
4848 })
4949// System.setProperty("java.net.useSystemProxies", "true");
You can’t perform that action at this time.
0 commit comments