s2mod-packer
Pack/unpack .s2mod Content Pack archives for OpenStranded.
Usage
CLI
s2mod-packer <command> [options]
Commands:
pack Pack a directory into a .s2mod archive
unpack Unpack a .s2mod archive to a directory
info Show information about a .s2mod archive
Examples
# Pack
# Unpack
# Info
Library
[]
= "0.1"
use ;
// Read an existing pack
let mut pack = open?;
println!;
// Create a new pack
let manifest = new;
let mut pack = create?;
pack.add_file?;
pack.finalize?;
Modules
| Module | Description |
|---|---|
manifest |
Content Pack manifest (manifest.toml) |
package |
Archive read/write operations |
cli |
Command-line interface |