mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Common Info.plist for all products.
This commit is contained in:
@@ -1,86 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>pycharm</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>PyCharm.icns</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>PyCharm</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.jetbrains.pycharm</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>PyCharm @@version@@, build @@build@@. Copyright JetBrains s.r.o., (c) 2000-@@year@@</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>@@version@@</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>@@build@@</string>
|
||||
|
||||
<key>LSArchitecturePriority</key>
|
||||
<array>
|
||||
<string>x86_64</string>
|
||||
<string>i386</string>
|
||||
</array>
|
||||
<key>LSRequiresNativeExecution</key>
|
||||
<string>YES</string>
|
||||
|
||||
<key>Java</key>
|
||||
<dict>
|
||||
<key>ClassPath</key>
|
||||
<string>$APP_PACKAGE/lib/bootstrap.jar:$APP_PACKAGE/lib/extensions.jar:$APP_PACKAGE/lib/util.jar:$APP_PACKAGE/lib/jdom.jar:$APP_PACKAGE/lib/log4j.jar</string>
|
||||
|
||||
<key>JVMVersion</key>
|
||||
<string>@@jdk_req@@</string>
|
||||
|
||||
<key>MainClass</key>
|
||||
<string>com.intellij.idea.Main</string>
|
||||
<key>Properties</key>
|
||||
<dict>
|
||||
<key>CVS_PASSFILE</key>
|
||||
<string>~/.cvspass</string>
|
||||
<key>com.apple.mrj.application.live-resize</key>
|
||||
<string>false</string>
|
||||
<key>idea.config.path</key>
|
||||
<string>~/Library/Preferences/@@system_selector@@/</string>
|
||||
<key>idea.system.path</key>
|
||||
<string>~/Library/Caches/@@system_selector@@/</string>
|
||||
<key>idea.plugins.path</key>
|
||||
<string>~/Library/Application Support/@@system_selector@@/</string>
|
||||
<key>idea.log.path</key>
|
||||
<string>~/Library/Logs/@@system_selector@@/</string>
|
||||
<key>java.endorsed.dirs</key>
|
||||
<string></string>
|
||||
<key>idea.smooth.progress</key>
|
||||
<string>false</string>
|
||||
<key>apple.laf.useScreenMenuBar</key>
|
||||
<string>true</string>
|
||||
<key>apple.awt.graphics.UseQuartz</key>
|
||||
<string>true</string>
|
||||
<key>idea.use.native.mac.filechooser</key>
|
||||
<string>false</string>
|
||||
<key>apple.awt.fullscreencapturealldisplays</key>
|
||||
<string>false</string>
|
||||
<key>idea.platform.prefix</key>
|
||||
<string>Python</string>
|
||||
</dict>
|
||||
|
||||
<key>VMOptions</key>
|
||||
<string>@@vmoptions@@ -Xbootclasspath/a:../lib/boot.jar</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>$APP_PACKAGE/bin</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -62,10 +62,6 @@ def includeFile(String filepath) {
|
||||
s
|
||||
}
|
||||
|
||||
boolean isEap() {
|
||||
return "true" == p("component.version.eap")
|
||||
}
|
||||
|
||||
class Paths {
|
||||
final sandbox
|
||||
final distAll
|
||||
@@ -166,10 +162,9 @@ target('default': "Build artifacts") {
|
||||
format(property: "todayYear", pattern: "yyyy")
|
||||
}
|
||||
|
||||
ant.xmlproperty(file: "$home/python/resources/idea/PythonApplicationInfo.xml", collapseAttributes: "true")
|
||||
setProperty("isEap", isEap())
|
||||
ant.xmlproperty(file: "$home/CIDR/resources/idea/CIDRApplicationInfo.xml", collapseAttributes: "true")
|
||||
|
||||
if (isEap) {
|
||||
if (isEap()) {
|
||||
setProperty("vmoptions", vmoptions + " -agentlib:yjpagent=disablej2ee,disablecounts,disablealloc,sessionname=PyCharm")
|
||||
}
|
||||
|
||||
@@ -240,14 +235,14 @@ target('default': "Build artifacts") {
|
||||
version: "1.0",
|
||||
system_selector: "PyCharm10",
|
||||
jdk_req: "1.6*",
|
||||
vmoptions: "-Xms128m -Xmx512m -XX:MaxPermSize=250m -ea" + (isEap ? " -agentlib:yjpagent=disablej2ee,sessionname=pycharm" : ""),
|
||||
vmoptions: "-Xms128m -Xmx512m -XX:MaxPermSize=250m -ea" + (isEap() ? " -agentlib:yjpagent=disablej2ee,sessionname=pycharm" : ""),
|
||||
paths.distMac)
|
||||
|
||||
buildExe()
|
||||
|
||||
ant.echo(message: buildName, file: "$sandbox/layout/build.txt")
|
||||
|
||||
def root = isEap ? "PyCharm-${buildNumber}.app" : "PyCharm ${p("component.version.major")}.${p("component.version.minor")}.app"
|
||||
def root = isEap() ? "PyCharm-${buildNumber}.app" : "PyCharm ${p("component.version.major")}.${p("component.version.minor")}.app"
|
||||
|
||||
ant.zip(zipfile: "${paths.artifacts}/pycharm${buildName}.sit") {
|
||||
tarfileset(dir: paths.distAll, prefix: root)
|
||||
@@ -511,68 +506,24 @@ def layoutFull(String target, Set usedJars) {
|
||||
}
|
||||
}
|
||||
|
||||
ant.echo(file: "$target/bin/idea.properties", append: "true", message:
|
||||
isEap() ?
|
||||
"""
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Change to 'disabled' if you do not need to receive instant visual
|
||||
# notifications about fatal errors that happen to PyCharm or plugins installed.
|
||||
#-----------------------------------------------------------------------
|
||||
idea.fatal.error.notification=enabled
|
||||
"""
|
||||
|
||||
:
|
||||
"""
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Change to 'enabled' if you need to receive instant visual notifications about
|
||||
# fatal errors that happen to PyCharm or plugins installed.
|
||||
#-----------------------------------------------------------------------
|
||||
idea.fatal.error.notification=disabled
|
||||
"""
|
||||
)
|
||||
patchPropertiesFile(target)
|
||||
}
|
||||
|
||||
def layoutMac(Map args, String target) {
|
||||
layout(target) {
|
||||
dir("bin") {
|
||||
fileset(dir: "$home/community/bin/mac")
|
||||
fileset(dir: "$home/community/bin/nix") {
|
||||
exclude(name: "idea.sh")
|
||||
}
|
||||
fileset(dir: "$home/bin") {
|
||||
include(name: "*.jnilib")
|
||||
}
|
||||
fileset(dir: "$home/python/build") {
|
||||
include(name: "pycharm.sh")
|
||||
}
|
||||
}
|
||||
dir("lib") {
|
||||
fileset(dir: "$home/community/build/conf/mac/lib")
|
||||
}
|
||||
dir("Contents") {
|
||||
dir("MacOS") {
|
||||
}
|
||||
dir("Resources") {
|
||||
fileset(dir: "$home/python/resources", includes: "PyCharm.icns")
|
||||
}
|
||||
fileset(dir: "$home/python/build", includes: "Info.plist")
|
||||
fileset(dir: "$home/bin", includes: "*.jnilib")
|
||||
}
|
||||
}
|
||||
|
||||
ant.copy(file: "$home/community/build/conf/mac/Contents/MacOS/idea", tofile: "$target/Contents/MacOS/pycharm")
|
||||
args.buildNumber = buildName
|
||||
args["executable"] = "pycharm"
|
||||
args["icns"] = "$home/python/resources/PyCharm.icns"
|
||||
args["bundle_name"] = "PyCharm"
|
||||
args["bundleIdentifier"] = "com.jetbrains.pycharm"
|
||||
args["platform_prefix"] = "Python"
|
||||
|
||||
ant.replace(file: "$target/Contents/Info.plist") {
|
||||
replacefilter(token: "@@build@@", value: args.buildName)
|
||||
replacefilter(token: "@@year@@", value: "$todayYear")
|
||||
|
||||
|
||||
replacefilter(token: "@@version@@", value: args.version)
|
||||
replacefilter(token: "@@vmoptions@@", value: args.vmoptions + " -Xverify:none -XX:+UseCompressedOOPS -XX:+DoEscapeAnalysis")
|
||||
replacefilter(token: "@@system_selector@@", value: args.system_selector)
|
||||
replacefilter(token: "@@jdk_req@@", value: args.jdk_req)
|
||||
}
|
||||
layoutMacApp(target, "$home/community", args)
|
||||
|
||||
ant.copy(file: "$home/python/help/pycharmhelp_mac.jar", tofile: "$target/help/pycharmhelp.jar")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user