Strip binary with new 1.59 feature

This commit is contained in:
veeso
2022-03-05 11:11:07 +01:00
parent 8d9e7443ec
commit 35dc11cce3
5 changed files with 10 additions and 7 deletions

View File

@@ -23,9 +23,9 @@ RUN git clone --branch $branch https://github.com/veeso/termscp.git
# Set workdir to termscp
WORKDIR /usr/src/termscp/
# Install cargo deb
RUN . $HOME/.cargo/env && cargo install cargo-deb cargo-strip
RUN . $HOME/.cargo/env && cargo install cargo-deb
# Build for x86_64
RUN . $HOME/.cargo/env && cargo build --release && cargo strip
RUN . $HOME/.cargo/env && cargo build --release
# Build pkgs
RUN . $HOME/.cargo/env && cargo deb