reset Xcode installed state to fix the window

This commit is contained in:
Ben Fry
2022-08-08 17:59:59 -04:00
parent b204d80f18
commit 7d8ab53ff3
2 changed files with 7 additions and 0 deletions

View File

@@ -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);

View File

@@ -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.