-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When expanding an asset path, currently only the "target/release/" prefix could be remapped. By comprehending the build profile, path expansion can happen for "target/<profile>". This enables use of both alternative target-triple and build profiles. For example, given the following asset configuration in Cargo.toml: [package.metadata.generate-rpm] assets = [ { source = "target/my-profile/my-exe", dest = "/usr/bin/", mode = "755" }, ] rpms can be generated for multiple target triples, such as: cargo generate-rpm --profile my-profile --target x86_64-unknown-linux-musl cargo generate-rpm --profile my-profile --target i668-unknown-linux-musl with the paths for the "my-exe" executable expanded correctly to: target/x86_64-unknown-linux-musl/my-profile/my-exe target/i686-unknown-linux-musl/my-profile/my-exe This behavior is consistent with cargo-deb, which also has a --profile option for the same purpose. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
- Loading branch information
Showing
4 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters