Browse Source

Minor refactoring for a bit more clarity in the deprecated Xcode post-build script check.

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
59f28855a3
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h

+ 7
- 2
extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h View File

@@ -309,8 +309,7 @@ public:
void updateDeprecatedProjectSettingsInteractively() override
{
// check for an old version of the script from the Introjucer
if (MD5 (getPostBuildScript().toUTF8()).toHexString() == "265ac212a7e734c5bbd6150e1eae18a1")
if (hasInvalidPostBuildScript())
{
String alertWindowText = iOS ? "Your Xcode (iOS) Exporter settings use an invalid post-build script. Click 'Update' to remove it."
: "Your Xcode (OSX) Exporter settings use a pre-JUCE 4.2 post-build script to move the plug-in binaries to their plug-in install folders.\n\n"
@@ -324,6 +323,12 @@ public:
}
}
bool hasInvalidPostBuildScript() const
{
// check whether the script is identical to the old one that the Introjucer used to auto-generate
return (MD5 (getPostBuildScript().toUTF8()).toHexString() == "265ac212a7e734c5bbd6150e1eae18a1");
}
protected:
//==============================================================================
class XcodeBuildConfiguration : public BuildConfiguration


Loading…
Cancel
Save