From 7d8ab53ff3d03410ce2a62bd79235934a222feb7 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Mon, 8 Aug 2022 17:59:59 -0400 Subject: [PATCH] reset Xcode installed state to fix the window --- java/src/processing/mode/java/ExportPrompt.java | 2 ++ java/src/processing/mode/java/JavaBuild.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/java/src/processing/mode/java/ExportPrompt.java b/java/src/processing/mode/java/ExportPrompt.java index 06f9fd8c5..856d4d736 100644 --- a/java/src/processing/mode/java/ExportPrompt.java +++ b/java/src/processing/mode/java/ExportPrompt.java @@ -296,6 +296,8 @@ public class ExportPrompt { } else { // Launch the process asynchronously PApplet.exec("xcode-select", "--install"); + // Reset the installed state so that the message will change. + JavaBuild.resetXcodeInstalled(); // Close the window so that we can rebuild it with different text // once they've finished installing the Command Line Tools. dialog.setVisible(false); diff --git a/java/src/processing/mode/java/JavaBuild.java b/java/src/processing/mode/java/JavaBuild.java index 6a9dca880..3acef1bef 100644 --- a/java/src/processing/mode/java/JavaBuild.java +++ b/java/src/processing/mode/java/JavaBuild.java @@ -1104,6 +1104,11 @@ public class JavaBuild { } + static protected void resetXcodeInstalled() { + xcodeInstalled = null; // give them another chance + } + + /** * Run the launch4j build.xml file through ant to create the exe. * Most of this code was lifted from Android mode.