From 938f83555689bf04aaddd25c3618810bffcd24a3 Mon Sep 17 00:00:00 2001 From: Thomas Vos Date: Wed, 9 Feb 2022 08:26:34 +0100 Subject: [PATCH] Fix could not find application image error on macOS (#1811) --- .../desktop/application/tasks/AbstractRunDistributableTask.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractRunDistributableTask.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractRunDistributableTask.kt index 4322d97b9e..ab581e2bbd 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractRunDistributableTask.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractRunDistributableTask.kt @@ -34,6 +34,8 @@ abstract class AbstractRunDistributableTask @Inject constructor( fun run() { val appDir = appImageRootDir.ioFile.let { appImageRoot -> val files = appImageRoot.listFiles() + // Sometimes ".DS_Store" files are created on macOS, so ignore them. + ?.filterNot { it.name == ".DS_Store" } if (files == null || files.isEmpty()) { error("Could not find application image: $appImageRoot is empty!") } else if (files.size > 1) {