Codesign the app bundle before creating the dmg