mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

Asset destinations starting with '/' treated as files #85

Open kamathba opened 5 years ago

kamathba commented 5 years ago

In the following example, both mybin1 and mybin2 will show up as an executable /usr/bin inside the data archive.

[package.metadata.deb]
assets = [
    ["target/release/mybin1", "/usr/bin/", "755"],
    ["target/release/mybin2", "/usr/bin/", "755"],
]

This seems to be fixed by removing the leading /.

kornelski commented 5 years ago

Oh, that looks like a regression.