Skip to main content

extract_natives

Function extract_natives 

Source
pub async fn extract_natives(
    options: &LaunchOptions,
    version_json: &MinecraftVersionJson,
    bundle: &[AssetItem],
) -> Result<(), LaunchError>
Expand description

Extract all native JARs in bundle (NativeAsset items) to <options.path>/versions/<id>/natives/.

Skips META-INF/ entries; sets executable bit on Unix (0o755). Uses spawn_blocking so the synchronous zip operations don’t block the Tokio runtime.