mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
avoid attempts to export 32-bit verrsions of apps on macOS (fixes #4971)
This commit is contained in:
@@ -381,7 +381,7 @@ public class JavaBuild {
|
||||
|
||||
// grab the imports from the code just preprocessed
|
||||
|
||||
importedLibraries = new ArrayList<Library>();
|
||||
importedLibraries = new ArrayList<>();
|
||||
Library core = mode.getCoreLibrary();
|
||||
if (core != null) {
|
||||
importedLibraries.add(core);
|
||||
@@ -697,11 +697,13 @@ public class JavaBuild {
|
||||
final String arch = Platform.getNativeArch();
|
||||
|
||||
if (Library.hasMultipleArch(platform, importedLibraries)) {
|
||||
// export the 32-bit version
|
||||
folder = new File(sketch.getFolder(), "application." + platformName + "32");
|
||||
|
||||
if (!exportApplication(folder, platform, "32", embedJava && (bits == 32) && ("x86".equals(arch) || "i386".equals(arch)))) {
|
||||
return false;
|
||||
// Don't try to export 32-bit on macOS, because it doesn't exist.
|
||||
if (platform != PConstants.MACOSX) {
|
||||
// export the 32-bit version
|
||||
folder = new File(sketch.getFolder(), "application." + platformName + "32");
|
||||
if (!exportApplication(folder, platform, "32", embedJava && (bits == 32) && ("x86".equals(arch) || "i386".equals(arch)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// export the 64-bit version
|
||||
folder = new File(sketch.getFolder(), "application." + platformName + "64");
|
||||
|
||||
Reference in New Issue
Block a user