Expand description
cargo xtask dist — assemble the Kobo distribution directory.
Copies the compiled Cadmus binary, shared libraries, scripts, fonts,
icons, and other assets into a dist/ directory that mirrors the layout
expected on the Kobo device.
§Prerequisites
cargo xtask build-kobomust have been run first.libs/must contain the ARM shared libraries.bin/,resources/, andhyphenation-patterns/must exist.
§Output layout
dist/
├── cadmus (ARM binary)
├── libs/ (versioned .so files)
├── fonts/
├── icons/
├── css/
├── scripts/
├── keyboard-layouts/
├── hyphenation-patterns/
├── bin/
├── resources/
├── Settings-sample.toml
├── LICENSE
└── *.sh (contrib scripts)Structs§
- Dist
Args - Arguments for
cargo xtask dist.
Functions§
- clean_
user_ 🔒files - Removes user-specific files that should not be distributed.
- copy_
assets 🔒 - Copies static assets (fonts, icons, scripts, etc.) into
dist/. - copy_
binary 🔒 - Copies the compiled ARM binary into
dist/. - copy_
libraries 🔒 - Copies ARM shared libraries from
libs/intodist/libs/with versioned names expected by the Kobo runtime linker. - remove_
matching 🔒 - Removes files in
dirwhose names match the globpattern. - run
- Assembles the Kobo distribution directory.
- strip_
and_ 🔒patch - Strips debug symbols and removes RPATH from the binary and all libraries.