From 59f28855a36080d61f80c5e41b460a35beee8673 Mon Sep 17 00:00:00 2001 From: Timur Doumler Date: Fri, 15 Apr 2016 10:28:17 +0100 Subject: [PATCH] Minor refactoring for a bit more clarity in the deprecated Xcode post-build script check. --- .../Source/Project Saving/jucer_ProjectExport_XCode.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h index 3a0655124c..c8ff8817e5 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -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