mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't package two copies of idea.properties into Mac zip, package only the Mac generated one
This commit is contained in:
@@ -123,7 +123,7 @@ def layoutAll(Map args, String home, String out, Paths _paths = null) {
|
||||
buildWinZip("$paths.artifacts/idea${args.buildNumber}.win.zip", [paths.distAll, paths.distWin])
|
||||
|
||||
def macAppRoot = isEap() ? "${p("component.version.codename")}-${args.buildNumber}.app" : "IntelliJ IDEA ${p("component.version.major")} CE.app"
|
||||
buildMacZip(macAppRoot, "$paths.artifacts/idea${args.buildNumber}.mac.zip", [paths.distAll, paths.distMac])
|
||||
buildMacZip(macAppRoot, "$paths.artifacts/idea${args.buildNumber}.mac.zip", [paths.distAll], paths.distMac)
|
||||
|
||||
buildTarGz("idea-${args.buildNumber}", "$paths.artifacts/idea${args.buildNumber}.tar", [paths.distAll, paths.distUnix])
|
||||
}
|
||||
|
||||
@@ -626,11 +626,12 @@ binding.setVariable("buildWinZip", { String zipPath, List paths ->
|
||||
notifyArtifactBuilt(zipPath)
|
||||
})
|
||||
|
||||
binding.setVariable("buildMacZip", { String zipRoot, String zipPath, List paths, List extraBins = [] ->
|
||||
binding.setVariable("buildMacZip", { String zipRoot, String zipPath, List paths, List macPath, List extraBins = [] ->
|
||||
projectBuilder.stage(".mac.zip")
|
||||
|
||||
allPaths = paths + [macPath]
|
||||
ant.zip(zipfile: zipPath) {
|
||||
paths.each {
|
||||
allPaths.each {
|
||||
zipfileset(dir: it, prefix: zipRoot) {
|
||||
exclude(name: "bin/*.sh")
|
||||
exclude(name: "bin/fsnotifier")
|
||||
@@ -639,10 +640,13 @@ binding.setVariable("buildMacZip", { String zipRoot, String zipPath, List paths,
|
||||
extraBins.each {
|
||||
exclude(name: it)
|
||||
}
|
||||
if (it != macPath) {
|
||||
exclude(name: "bin/idea.properties")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
paths.each {
|
||||
allPaths.each {
|
||||
zipfileset(dir: it, filemode: "755", prefix: zipRoot) {
|
||||
include(name: "bin/*.sh")
|
||||
include(name: "bin/fsnotifier")
|
||||
|
||||
Reference in New Issue
Block a user