@@ -849,7 +849,7 @@ protected boolean exportApplication(File destFolder,
849849 // compared to the machine being used to build/export the sketch
850850 // https://github.com/processing/processing/pull/4406
851851 if (Preferences .getBoolean ("run.options.memory" ) &&
852- !exportVariant .equals ("arm" )) {
852+ !exportVariant .contains ("arm" )) {
853853 runOptions .append ("-Xms" + Preferences .get ("run.options.memory.initial" ) + "m" );
854854 runOptions .append ("-Xmx" + Preferences .get ("run.options.memory.maximum" ) + "m" );
855855 }
@@ -870,7 +870,8 @@ protected boolean exportApplication(File destFolder,
870870 }
871871 }
872872
873- /// macosx: write out Info.plist (template for classpath, etc)
873+
874+ /// macOS: write out Info.plist (template for classpath, etc)
874875
875876 if (exportPlatform == PConstants .MACOS ) {
876877 StringBuilder runOptionsXML = new StringBuilder ();
@@ -911,6 +912,10 @@ protected boolean exportApplication(File destFolder,
911912 sb .replace (index , index + "@@lsuipresentationmode@@" .length (),
912913 Preferences .getBoolean ("export.application.present" ) ? "4" : "0" );
913914 }
915+ while ((index = sb .indexOf ("@@lsarchitecturepriority@@" )) != -1 ) {
916+ sb .replace (index , index + "@@lsarchitecturepriority@@" .length (),
917+ exportVariant .substring ("macos-" .length ()));
918+ }
914919
915920 lines [i ] = sb .toString ();
916921 }
0 commit comments