| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1352,16 +1352,16 @@ private boolean exportApplication(File destFolder, | |||
| 1352 | 1352 | runOptions += " -Xmx" + | |
| 1353 | 1353 | Preferences.get("run.options.memory.maximum") + "m"; | |
| 1354 | 1354 | } | |
| 1355 | - if (exportPlatform == PConstants.MACOSX) { | ||
| 1356 | - // If no bits specified (libs are all universal, or no native libs) | ||
| 1357 | - // then exportBits will be 0, and can be controlled via "Get Info". | ||
| 1358 | - // Otherwise, need to specify the bits as a VM option. | ||
| 1359 | - if (exportBits == 32) { | ||
| 1360 | - runOptions += " -d32"; | ||
| 1361 | - } else if (exportBits == 64) { | ||
| 1362 | - runOptions += " -d64"; | ||
| 1363 | - } | ||
| 1364 | - } | ||
| 1355 | + // if (exportPlatform == PConstants.MACOSX) { | ||
| 1356 | + // // If no bits specified (libs are all universal, or no native libs) | ||
| 1357 | + // // then exportBits will be 0, and can be controlled via "Get Info". | ||
| 1358 | + // // Otherwise, need to specify the bits as a VM option. | ||
| 1359 | + // if (exportBits == 32) { | ||
| 1360 | + // runOptions += " -d32"; | ||
| 1361 | + // } else if (exportBits == 64) { | ||
| 1362 | + // runOptions += " -d64"; | ||
| 1363 | + // } | ||
| 1364 | + // } | ||
| 1365 | 1365 | ||
| 1366 | 1366 | /// macosx: write out Info.plist (template for classpath, etc) | |
| 1367 | 1367 | ||
@@ -1395,6 +1395,18 @@ private boolean exportApplication(File destFolder, | |||
| 1395 | 1395 | sb.replace(index, index + "@@lsuipresentationmode@@".length(), | |
| 1396 | 1396 | Preferences.getBoolean("export.application.fullscreen") ? "4" : "0"); | |
| 1397 | 1397 | } | |
| 1398 | + while ((index = sb.indexOf("@@lsarchitecturepriority@@")) != -1) { | ||
| 1399 | + // More about this mess: http://support.apple.com/kb/TS2827 | ||
| 1400 | + // First default to exportBits == 0 case | ||
| 1401 | + String arch = "<string>x86_64</string>\n <string>i386</string>"; | ||
| 1402 | + if (exportBits == 32) { | ||
| 1403 | + arch = "<string>i386</string>"; | ||
| 1404 | + } else if (exportBits == 64) { | ||
| 1405 | + arch = "<string>x86_64</string>"; | ||
| 1406 | + } | ||
| 1407 | + sb.replace(index, index + "@@lsarchitecturepriority@@".length(), arch); | ||
| 1408 | + } | ||
| 1409 | + | ||
| 1398 | 1410 | lines[i] = sb.toString(); | |
| 1399 | 1411 | } | |
| 1400 | 1412 | // explicit newlines to avoid Windows CRLF | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -343,7 +343,6 @@ | |||
| 343 | 343 | tofile="macosx/work/Processing.app" /> | |
| 344 | 344 | ||
| 345 | 345 | <chmod file="macosx/work/Processing.app/Contents/MacOS/JavaApplicationStub" perm="ugo+x" /> | |
| 346 | - <chmod file="macosx/work/Processing.app/Contents/MacOS/JavaApplicationStub64" perm="ugo+x" /> | ||
| 347 | 346 | ||
| 348 | 347 | <copy todir="macosx/work/Processing.app/Contents/Resources/Java" flatten="true"> | |
| 349 | 348 | <fileset refid="runtime.jars"/> | |
@@ -368,7 +367,6 @@ | |||
| 368 | 367 | ||
| 369 | 368 | <!-- The ant copy command does not preserve permissions. --> | |
| 370 | 369 | <chmod file="macosx/work/Processing.app/Contents/MacOS/JavaApplicationStub" perm="ugo+x" /> | |
| 371 | - <chmod file="macosx/work/Processing.app/Contents/MacOS/JavaApplicationStub64" perm="ugo+x" /> | ||
| 372 | 370 | ||
| 373 | 371 | <replace file="macosx/work/Processing.app/Contents/Info.plist" | |
| 374 | 372 | token="VERSION" value="${version}" /> | |
@@ -404,7 +402,6 @@ | |||
| 404 | 402 | ||
| 405 | 403 | <!-- The ant copy command does not preserve permissions. --> | |
| 406 | 404 | <chmod file="macosx/working_dir/Processing.app/Contents/MacOS/JavaApplicationStub" perm="ugo+x" /> | |
| 407 | - <chmod file="macosx/working_dir/Processing.app/Contents/MacOS/JavaApplicationStub64" perm="ugo+x" /> | ||
| 408 | 405 | ||
| 409 | 406 | <!-- Pause briefly for the OS to catch up with the DMG changes. | |
| 410 | 407 | This prevents "hdiutil: couldn't eject "disk3" - Resource busy" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,11 @@ | |||
| 27 | 27 | <key>LSUIPresentationMode</key> | |
| 28 | 28 | <integer>@@lsuipresentationmode@@</integer> | |
| 29 | 29 | ||
| 30 | + <key>LSArchitecturePriority</key> | ||
| 31 | + <array> | ||
| 32 | + @@lsarchitecturepriority@@ | ||
| 33 | + </array> | ||
| 34 | + | ||
| 30 | 35 | <key>Java</key> | |
| 31 | 36 | <dict> | |
| 32 | 37 | <key>VMOptions</key> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments