kornelski / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
https://lib.rs/cargo-deb
MIT License
404 stars 48 forks source link

Custom profile is not honored #87

Closed chevdor closed 1 year ago

chevdor commented 1 year ago
$ cargo deb --profile production --strip -p subwasm -o "subwasm_linux_amd64.deb"
    Finished production [optimized] target(s) in 0.65s
cargo-deb: Asset file path does not match any files: /Users/Shared/projects/subwasm/cli/target/release/subwasm

Despite providing --profile production, cargo deb searches for the binary in target/release so it cannot work.

$ ll target/production/subwasm
    inode Permissions Links Size Blocks User Group Date Modified Git Name
244862072 .rwxr-xr-x@     1 13Mi  26960 will wheel 15 May 12:37   -I target/production/subwasm