mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-231466 delete only file to be patched + javadoc
GitOrigin-RevId: 9b9cef2dcf4d6c7d6a07b8674da02d0290f90f3a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c0569e8ce2
commit
bcde979ecf
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user