create xhs symlink in advance

This commit is contained in:
ducaale 2021-09-06 19:39:29 +03:00
parent cc304138b9
commit f8e14a6c9b
5 changed files with 4 additions and 9 deletions

View File

@ -72,9 +72,10 @@ native-tls = ["reqwest/native-tls", "reqwest/native-tls-alpn"]
[package.metadata.deb]
features = []
section = "web"
maintainer-scripts = "debian"
preserve-symlinks = true
assets = [
["target/release/xh", "usr/bin/", "755"],
["assets/xhs", "usr/bin/", "777"],
["LICENSE", "usr/share/doc/xh/", "644"],
["CHANGELOG.md", "usr/share/doc/xh/CHANGELOG", "644"],
["README.md", "usr/share/doc/xh/README", "644"],

1
assets/xh Normal file
View File

@ -0,0 +1 @@
This is a temp file to make cargo-deb happy while copying the xhs symlink.

1
assets/xhs Symbolic link
View File

@ -0,0 +1 @@
xh

4
debian/postinst vendored
View File

@ -1,4 +0,0 @@
#!/bin/sh
set -e
ln -sf /usr/bin/xh /usr/bin/xhs

4
debian/postrm vendored
View File

@ -1,4 +0,0 @@
#!/bin/sh
set -e
rm -f /usr/bin/xhs