Currently, when specifying a triggers-file that doesn't exist, cargo-deb will silently ignore it. The first commit of this PR adds a check and raise an error if the file can't be found. The second commit fixes the path of the file to be relative to the manifest directory, allowing triggers-file to be included when building outside of the manifest directory with the --package or --manifest-path options. I also fixed some clippy warnings.
Hello, thank you for this useful crate !
Currently, when specifying a
triggers-file
that doesn't exist,cargo-deb
will silently ignore it. The first commit of this PR adds a check and raise an error if the file can't be found. The second commit fixes the path of the file to be relative to the manifest directory, allowingtriggers-file
to be included when building outside of the manifest directory with the--package
or--manifest-path
options. I also fixed someclippy
warnings.