diff --git a/app/src/processing/mode/java/JavaBuild.java b/app/src/processing/mode/java/JavaBuild.java
index 4991a3f61..a38cbea5b 100644
--- a/app/src/processing/mode/java/JavaBuild.java
+++ b/app/src/processing/mode/java/JavaBuild.java
@@ -1352,16 +1352,16 @@ public class JavaBuild {
runOptions += " -Xmx" +
Preferences.get("run.options.memory.maximum") + "m";
}
- if (exportPlatform == PConstants.MACOSX) {
- // If no bits specified (libs are all universal, or no native libs)
- // then exportBits will be 0, and can be controlled via "Get Info".
- // Otherwise, need to specify the bits as a VM option.
- if (exportBits == 32) {
- runOptions += " -d32";
- } else if (exportBits == 64) {
- runOptions += " -d64";
- }
- }
+// if (exportPlatform == PConstants.MACOSX) {
+// // If no bits specified (libs are all universal, or no native libs)
+// // then exportBits will be 0, and can be controlled via "Get Info".
+// // Otherwise, need to specify the bits as a VM option.
+// if (exportBits == 32) {
+// runOptions += " -d32";
+// } else if (exportBits == 64) {
+// runOptions += " -d64";
+// }
+// }
/// macosx: write out Info.plist (template for classpath, etc)
@@ -1395,6 +1395,18 @@ public class JavaBuild {
sb.replace(index, index + "@@lsuipresentationmode@@".length(),
Preferences.getBoolean("export.application.fullscreen") ? "4" : "0");
}
+ while ((index = sb.indexOf("@@lsarchitecturepriority@@")) != -1) {
+ // More about this mess: http://support.apple.com/kb/TS2827
+ // First default to exportBits == 0 case
+ String arch = "x86_64\n i386";
+ if (exportBits == 32) {
+ arch = "i386";
+ } else if (exportBits == 64) {
+ arch = "x86_64";
+ }
+ sb.replace(index, index + "@@lsarchitecturepriority@@".length(), arch);
+ }
+
lines[i] = sb.toString();
}
// explicit newlines to avoid Windows CRLF
diff --git a/build/build.xml b/build/build.xml
index fd07bc28a..c7105d684 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -343,7 +343,6 @@
tofile="macosx/work/Processing.app" />
-
@@ -368,7 +367,6 @@
-
@@ -404,7 +402,6 @@
-