1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a bug in the projucer that would create incorrect post build scripts for AAX in certain situations

This commit is contained in:
hogliux 2016-10-20 17:44:15 +01:00
parent 288e56de83
commit eac52c9faf

View file

@ -194,17 +194,20 @@ private:
if (config->getValue(Ids::postbuildCommand).toString().isEmpty())
{
const String previousBuildCommands = config->getValue (Ids::internalPostBuildComamnd).toString();
const String aaxSDKPath = File::isAbsolutePath(aaxPath.toString())
? aaxPath.toString()
: String ("..\\..\\") + aaxPath.toString();
const bool is64Bit = (config->getValue (Ids::winArchitecture) == "x64");
const String bundleDir = "$(OutDir)$(TargetName).aaxplugin";
const String bundleContents = bundleDir + "\\Contents";
const String macOSDir = bundleContents + String ("\\") + (is64Bit ? "x64" : "Win32");
const String executable = macOSDir + String ("\\$(TargetName).aaxplugin");
const String bundleScript = aaxPath.toString() + String ("\\Utilities\\CreatePackage.bat");
const String bundleScript = aaxSDKPath + String ("\\Utilities\\CreatePackage.bat");
String iconFilePath = getTargetFolder().getChildFile ("icon.ico").getFullPathName();
if (! File (iconFilePath).existsAsFile())
iconFilePath = aaxPath.toString() + String ("\\Utilities\\PlugIn.ico");
iconFilePath = aaxSDKPath + String ("\\Utilities\\PlugIn.ico");
String script;