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)