prepare for release and attach sources during build