Bakelite::Container::Writer
Packs files into a standalone .bkl container or appends a Bakelite volume directly onto the end of an existing executable image.
Constructors
Instance methods
find_or_create_volume(name : Symbol | String, mount_point : String = "", priority : Int32 = 0, default_chunk_size : UInt32 = 65536_u32, default_compression : CompressionType = CompressionType::Deflate) : Volume
Finds an existing volume by name or creates and mounts a new one.
pack_directory(source_dir : Path | String, volume_name : Symbol | String = :root, mount_point : String = "", priority : Int32 = 0, chunk_size : UInt32 = 65536_u32, compression : CompressionType = CompressionType::Deflate, exclude : Array(String) = [] of String) : self
Packs a directory into a named volume.
pack_stream(io : IO, size : Int64, virtual_path : String, volume_name : Symbol | String = :root, mount_point : String = "", priority : Int32 = 0, chunk_size : UInt32 = 65536_u32, compression : CompressionType = CompressionType::Deflate) : self
Streams and packs an arbitrary IO stream into a named volume.
target_path
Sourcevolumes
Source