From eac52c9fafd3d2d1350ac1858507c7990899b422 Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 20 Oct 2016 17:44:15 +0100 Subject: [PATCH] Fixed a bug in the projucer that would create incorrect post build scripts for AAX in certain situations --- .../Source/Project Saving/jucer_ProjectExport_MSVC.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index dddee66f05..ba031c755e 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -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;