I’m using a post build script for my plugin on Windows as discussed here (similar to the Mac technique):
For some reason this seems to inhibit the copy and CreatePackage.bat commands from executing. The constructed post build event is something like this:
copy /Y "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxdll" "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxplugin\Contents\x64\MyProject (64-bit).aaxplugin"
"c:\\SDKs\\AAX\\Utilities\\CreatePackage.bat" "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxplugin\Contents\x64" "c:\\SDKs\\AAX\\Utilities\\PlugIn.ico"```
If I remove the first line (my batch script):
```copy /Y "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxdll" "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxplugin\Contents\x64\MyProject (64-bit).aaxplugin"
"c:\\SDKs\\AAX\\Utilities\\CreatePackage.bat" "C:\Users\myusername\MyProject\Builds\VisualStudio2015_64\Debug\AAX\\MyProject (64-bit).aaxplugin\Contents\x64" "c:\\SDKs\\AAX\\Utilities\\PlugIn.ico"```
Then it all works. So I seem to have to edit the AAX project to remove this first line (I need the script for VST to do something else) and sign the AAX manually too.
Anyone got any clues as to what might be going on? There are no suspicious messages in the build output. And I'm returning `exit 0` from by `.bat`.
I just set up the first new AAX build on Windows since switching from JUCE 4 to 5. I noticed:
a) Post build commands are the wrong way round after generating the VS2017 solution with Projucer. It first attempts to copy the aaxdll and then creates the aaxplugin package which leads to a package missing the binary on the first build. If you don’t check in the package, the package will always be ampty on your CI system unless you fix the solution manually.
b) Instead of using the $(Platform) variable, different commands are issued for each platform.