native mac help building

This commit is contained in:
Dennis Ushakov
2012-04-13 20:02:48 +04:00
parent 6094177918
commit e954c26f4d
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -46,6 +46,10 @@
<string>@@build@@</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>CFBundleHelpBookName</key>
<string>JetBrains.@@help_id@@.help</string>
<key>CFBundleHelpBookFolder</key>
<string>@@help_id@@.help</string>
<key>LSArchitecturePriority</key>
<array>
+6
View File
@@ -236,11 +236,16 @@ binding.setVariable("layoutMacApp", { String path, String ch, Map args ->
}
String executable = args.executable != null ? args.executable : p("component.names.product").toLowerCase()
String helpId = args.help_id != null ? args.help_id : "IJ"
String icns = "idea.icns"
String helpIcns = "$path/Contents/Resources/${helpId}.help/Contents/Resources/Shared/product.icns"
if (args.icns != null) {
ant.delete(file: "$path/Contents/Resources/idea.icns")
ant.copy(file: args.icns, todir: "$path/Contents/Resources")
ant.copy(file: args.icns, tofile: helpIcns)
icns = new File((String)args.icns).getName();
} else {
ant.copy(file: "$path/Contents/Resources/idea.icns", tofile: helpIcns)
}
String fullName = args.fullName != null ? args.fullName : p("component.names.fullname")
@@ -270,6 +275,7 @@ binding.setVariable("layoutMacApp", { String path, String ch, Map args ->
replacefilter(token: "@@vmoptions64@@", value: "$mem64 -XX:+UseCompressedOops")
replacefilter(token: "@@idea_properties@@", value: properties)
replacefilter(token: "@@class_path@@", value: classPath)
replacefilter(token: "@@help_id@@", value: helpId)
}
if (executable != "idea") {
@@ -110,7 +110,7 @@ ide.mac.message.dialogs.as.sheets=true
ide.mac.inplaceDialogMnemonicsFix=true
ide.mac.fix.dialog.showing=false
ide.mac.hide.cursor.when.typing=true
ide.mac.show.native.help=false
ide.mac.show.native.help=true
ide.mac.useNativeClipboard=false
debugger.valueTooltipAutoShow=true