Trait tugger_apple_codesign::BundleFileHandler[][src]

pub trait BundleFileHandler {
    fn install_file(
        &self,
        log: &Logger,
        file: &DirectoryBundleFile<'_>
    ) -> Result<(), AppleCodesignError>;
fn sign_and_install_macho(
        &self,
        log: &Logger,
        file: &DirectoryBundleFile<'_>
    ) -> Result<SignedMachOInfo, AppleCodesignError>; }

Used to process individual files within a bundle.

This abstraction lets entities like CodeResourcesBuilder drive the installation of files into a new bundle.

Required methods

fn install_file(
    &self,
    log: &Logger,
    file: &DirectoryBundleFile<'_>
) -> Result<(), AppleCodesignError>
[src]

Ensures a file (regular or symlink) is installed.

fn sign_and_install_macho(
    &self,
    log: &Logger,
    file: &DirectoryBundleFile<'_>
) -> Result<SignedMachOInfo, AppleCodesignError>
[src]

Sign a Mach-O file and ensure its new content is installed.

Returns Mach-O metadata which will be recorded in crate::code_resources::CodeResources.

Loading content...

Implementors

Loading content...