pub(crate) fn write_release( release_dir: &Path, artifact_name: &str, canonical: &[u8], signature: &[u8], ) -> Result<()>