IDEA-231466 delete only file to be patched + javadoc

GitOrigin-RevId: 9b9cef2dcf4d6c7d6a07b8674da02d0290f90f3a
This commit is contained in:
Dmitriy.Panov
2020-02-12 06:13:13 +00:00
committed by intellij-monorepo-bot
parent c0569e8ce2
commit bcde979ecf
+6 -5
View File
@@ -144,17 +144,18 @@ static def archToDownload(platform) {
}
/**
* See IDEA-231466
* Required to pass Apple Notarization,
* cannot be done on JBR side without breaking JBR as standalone application,
* see IDEA-231466
*/
Task patchMacOS(String jbrArtifactName, File jbrDir) {
task("patch$jbrArtifactName") {
doFirst {
def contents = jbrDir.toPath().resolve('jbr/Contents')
def patchedDir = contents.resolve('MacOS')
patchedDir.eachFileRecurse { Files.delete(it) }
def link = patchedDir.resolve('libjli.dylib')
def origin = contents.resolve('MacOS/libjli.dylib')
Files.deleteIfExists(origin)
def target = contents.resolve('Home/lib/jli/libjli.dylib')
Files.createSymbolicLink(link, link.parent.relativize(target))
Files.createSymbolicLink(origin, origin.parent.relativize(target))
}
}
}