PACKAGING.md
44 lines · 1806 bytes
Notes For Package Maintainers
Linking Against System Packages
The default Cargo features for iamb will bundle SQLite. Package maintainers
may want to link against the system's native SQLite instead. To do so, you'll
want to build without the default features, and explicitly add back in desktop
(assuming you want notifications and clipboard support):
% cargo build --release --no-default-features --features=desktop
Enabling LTO
Enabling LTO can result in smaller binaries. There is a separate profile to enable it when building:
% cargo build --profile release-lto
Note that this can fail in some build environments if both Clang and GCC are present.
Documentation
In addition to the compiled binary, there are other files in the repo that you'll want to install as part of a package:
| Repository Path | Installed Path (may vary per OS) |
|---|---|
| /iamb.desktop | /usr/share/applications/iamb.desktop |
| /config.example.toml | /usr/share/iamb/config.example.toml |
| /docs/iamb-256x256.png | /usr/share/icons/hicolor/256x256/apps/iamb.png |
| /docs/iamb-512x512.png | /usr/share/icons/hicolor/512x512/apps/iamb.png |
| /docs/iamb.svg | /usr/share/icons/hicolor/scalable/apps/iamb.svg |
| /docs/iamb.1 | /usr/share/man/man1/iamb.1 |
| /docs/iamb.5 | /usr/share/man/man5/iamb.5 |
| /docs/iamb.metainfo.xml | /usr/share/metainfo/iamb.metainfo.xml |