From 4e6bbfbfc3ae3d315c13ffc6d1a0f6769613823c Mon Sep 17 00:00:00 2001 From: Pen Tree Date: Wed, 27 Nov 2019 00:53:43 +0800 Subject: [PATCH] Simplify `cargo deb` usage --- INSTALL.md | 2 +- ci/before_deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index ba9b436a..281e12a1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -251,7 +251,7 @@ Using `cargo deb`, you can create and install a deb file. ```sh cargo install cargo-deb -cargo deb --install --manifest-path alacritty/Cargo.toml +cargo deb --install -p alacritty ``` To choose a default terminal app, use Debian's `update-alternatives`. diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index bc834f85..8d508bab 100755 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -60,7 +60,7 @@ function docker_deb { archname=$2 docker run -v "$(pwd):/source" "undeadleech/${image}" sh -c \ - "cd /source && /root/.cargo/bin/cargo deb --no-build --manifest-path alacritty/Cargo.toml \ + "cd /source && /root/.cargo/bin/cargo deb --no-build -p alacritty \ --output ./target/deploy/${name}-${archname}.deb" }