Post-build script

Here is my dirty but working current workflow* (we’ve yet to fully start building with this).

If you need more sophisticated things, read some BATCH hell.
remember CRLF counts for batch! (made me scratch my head for a while).
You can switch the logic to your needs. currently it works IF NOT Shared Code.
but it’s pretty much same logic for setting it to AAX/VST/VST3/RTAS targets.

And about signing. it doesn’t hurt to sign non-AAX. the only price if using PACE/AAX tool is build time…

my_post_build.bat "$(TargetDir)$(TargetFilename)"

 echo off
if [%1]==[/wrap] goto wrap
if [%1]==[/sign] goto sign_cmd
if not %1=="" goto sign_default
rem # PACE SIGN FOR AAX VALIDATION
:sign_default
set filename=%1
goto sign

:sign_cmd
set filename=%2
goto sign

:sign
echo.%filename%|findstr /C:"Shared Code" >nul 2>&1
if errorlevel 1 (
    echo Signing %filename% with PACE
    <add your PACE signing cmd here>
)
goto fin

rem # PACE ILOK PROTECTION
:wrap
set filename=%2
echo.%filename%|findstr /C:"Shared Code" >nul 2>&1
if errorlevel 1 (
    echo Wrapping %filename% with PACE
    <add your PACE wrapping cmd here>
)
goto fin

:fin
exit 0