A custom post processing script should be able to copy the processed file to wherever you want on download/upgrade