Skip to main content

package_binary_as_app

Function package_binary_as_app 

Source
pub async fn package_binary_as_app(
    binary_path: &Path,
    bundle_id: &str,
    names: MacOsAppNames<'_>,
    usage_descriptions: &[MacOsUsageDescription],
    resources_dir: Option<&Path>,
    icns: &[u8],
    output_root: &Path,
) -> Result<PathBuf>
Expand description

Package a compiled binary as a macOS .app bundle.

resources_dir is optional and copied to Contents/Resources when present. icns is the encoded app-icon family, written as Contents/Resources/AppIcon.icns and referenced from Info.plist.

ยงErrors

Returns an error if the binary is missing, template rendering fails, or bundle files cannot be created.