#bevy-plugin #assets #bevy #packer #zlib #single-file

bevy-histrion-packer

A Bevy plugin to pack assets into a single file

5 releases

0.2.0 Feb 17, 2024
0.1.3 Dec 30, 2023
0.1.2 Dec 28, 2023
0.1.1 Dec 28, 2023
0.1.0 Dec 28, 2023

#633 in Game dev

50 downloads per month

MIT/Apache

31KB
586 lines

Bevy Histrion Packer

MIT or Apache 2.0 Docs Crate

A Bevy plugin to pack assets into a single file 💥

// build.rs
use std::path::Path;

use bevy_histrion_packer::pack_assets_folder;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let source = Path::new("imported_assets/Default");
    let destination = Path::new("assets.hpak");

    pack_assets_folder(source, destination, false)?;
    Ok(())
}
// src/main.rs
use bevy::prelude::*;
use bevy_histrion_packer::HistrionPackerPlugin;

fn main() {
    App::new().add_plugins((
        HistrionPackerPlugin {
            source: "assets.hpak".into(),
            mode: bevy_histrion_packer::HistrionPackerMode::ReplaceDefaultProcessed,
        },
        DefaultPlugins,
    ));
}

Bevy Compatibility

bevy bevy-histrion-packer
0.13 0.2
0.12 0.1

License

Dual-licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~21–62MB
~1M SLoC