in bunch-cli/src/main/kotlin/org/jetbrains/bunches/hooks/hooks.kt [220:228]
fun findExecutableFileFromZip(): File? {
val jarURI = HooksCommand::class.java.protectionDomain.codeSource.location.toURI()
val installationDir = File(jarURI).parentFile.parentFile
val bunchExecutableFile = File(installationDir, "bin/bunch")
if (bunchExecutableFile.exists()) {
return bunchExecutableFile
}
return null
}