From 175d80f23bdb272306823f239b8d0e2a5433d9a1 Mon Sep 17 00:00:00 2001 From: Chris Wesdorp Date: Thu, 5 Feb 2026 22:53:19 +0100 Subject: [PATCH 1/2] Check Studio Pro folder on Mac OS The Studio Pro installation folder name changed from 11.5. The plugin now tries which folders exists to find the StP tools. --- .../kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt b/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt index ea1aae6..b91a1fd 100644 --- a/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt +++ b/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt @@ -135,7 +135,13 @@ class ToolFinderBuilder { } if (Os.current() == Os.OSX) { // default location on Mac OS X for Beta versions - paths.add(File("/Applications/Studio Pro ${mendixVersion}-Beta.app/Contents")) + // The naming convention changed since 11.5. The build number is not included + // and the dash is removed. The format is now "Studio Pro 11.5.0 Beta.app" + if (File("/Applications/Studio Pro ${mendixVersion} Beta.app/Contents").exists()) { + paths.add(File("/Applications/Studio Pro ${mendixVersion} Beta.app/Contents")) + } else { + paths.add(File("/Applications/Studio Pro ${mendixVersion}-Beta.app/Contents")) + } } // default download location paths.add(project.layout.buildDirectory.dir("modeler/${mendixVersion}").get().asFile) From 5be1c36ccbe1f323497619735e29d83396892aa1 Mon Sep 17 00:00:00 2001 From: Chris Wesdorp Date: Mon, 23 Mar 2026 09:14:40 +0100 Subject: [PATCH 2/2] Update installation folders for MacOS StudioPro installation paths on MacOS changed. This update adds all possible folders to the search path. --- .../mendixlabs/mendixgradleplugin/ToolFinder.kt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt b/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt index b91a1fd..317bd92 100644 --- a/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt +++ b/plugin/src/main/kotlin/mendixlabs/mendixgradleplugin/ToolFinder.kt @@ -134,14 +134,17 @@ class ToolFinderBuilder { paths.add(File("C:/Program Files/Mendix/${mendixVersion}")) } if (Os.current() == Os.OSX) { - // default location on Mac OS X for Beta versions + // folders where to find the OS install. In desc order (premature optimization) + + // Naming changed again after 11.6 + paths.add(File("/Applications/Mendix Studio Pro ${mendixVersion} Beta.app/Contents")) + // The naming convention changed since 11.5. The build number is not included // and the dash is removed. The format is now "Studio Pro 11.5.0 Beta.app" - if (File("/Applications/Studio Pro ${mendixVersion} Beta.app/Contents").exists()) { - paths.add(File("/Applications/Studio Pro ${mendixVersion} Beta.app/Contents")) - } else { - paths.add(File("/Applications/Studio Pro ${mendixVersion}-Beta.app/Contents")) - } + paths.add(File("/Applications/Studio Pro ${mendixVersion} Beta.app/Contents")) + + // default location on Mac OS X for Beta versions + paths.add(File("/Applications/Studio Pro ${mendixVersion}-Beta.app/Contents")) } // default download location paths.add(project.layout.buildDirectory.dir("modeler/${mendixVersion}").get().asFile)