Skip to content

Commit 8f697ee

Browse files
committed
build: use magic target/release/ path prefix
Both cargo-deb and cargo-generate-rpm treat the "target/release/" path prefix specially, replacing this prefix based on the build target and profile specified on the command line. N.B. cargo-generate-rpm gained support for --profile in cat-in-136/cargo-generate-rpm@9dd158bbb, which is not yet released, but is present on the profile-option branch of https://github.com/jpgrayson/cargo-generate-rpm which is used for CI.
1 parent b91479a commit 8f697ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ depends = "git"
6666
recommends = "git-email"
6767
extended-description = ""
6868
assets = [
69-
["target/for-pkg/stg", "usr/bin/", "755"],
69+
["target/release/stg", "usr/bin/", "755"],
7070
["README.md", "usr/share/doc/stgit/", "644"],
7171
["COPYING", "usr/share/doc/stgit/copyright", "644"],
7272
["Documentation/*.1", "usr/share/man/man1/", "644"],
@@ -79,7 +79,7 @@ assets = [
7979

8080
[package.metadata.generate-rpm]
8181
assets = [
82-
{ source = "target/for-pkg/stg", dest = "/usr/bin/", mode = "755" },
82+
{ source = "target/release/stg", dest = "/usr/bin/", mode = "755" },
8383
{ source = "README.md", dest = "/usr/share/doc/stgit/", mode = "644" },
8484
{ source = "COPYING", dest = "/usr/share/licenses/stgit/", mode = "644" },
8585
{ source = "Documentation/*.1", dest = "/usr/share/man/man1/", mode = "644", doc = true },

0 commit comments

Comments
 (0)