Fix bin filename for deb/rpm packaging (#364)

Unsure if deb ever supported that but rpm sure does not.

Fixes #292
This commit is contained in:
Félix Saparelli 2022-07-01 13:39:43 +00:00
parent f0d64f07df
commit c0c9193dff
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ section = "utility"
depends = "libc6, libgcc-s1" # not needed for musl, but see below
# conf-files = [] # look me up when config file lands
assets = [
["../../target/release/watchexec", "usr/bin/", "755"],
["../../target/release/watchexec", "usr/bin/watchexec", "755"],
["README.md", "usr/share/doc/watchexec/README", "644"],
["../../doc/watchexec.1.html", "usr/share/doc/watchexec/watchexec.1.html", "644"],
["../../doc/watchexec.1", "usr/share/man/man1/watchexec.1.html", "644"],
@ -110,7 +110,7 @@ assets = [
[package.metadata.generate-rpm]
assets = [
{ source = "../../target/release/watchexec", dest = "/usr/bin/", mode = "755" },
{ source = "../../target/release/watchexec", dest = "/usr/bin/watchexec", mode = "755" },
{ source = "README.md", dest = "/usr/share/doc/watchexec/README", mode = "644", doc = true },
{ source = "../../doc/watchexec.1.html", dest = "/usr/share/doc/watchexec/watchexec.1.html", mode = "644", doc = true },
{ source = "../../doc/watchexec.1", dest = "/usr/share/man/man1/watchexec.1.html", mode = "644" },