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

@@ -21,9 +21,9 @@ RUN git clone --branch $branch https://github.com/veeso/termscp.git
# Set workdir to termscp
WORKDIR /usr/src/termscp/
# Install cargo arxch
RUN source $HOME/.cargo/env && cargo install cargo-rpm cargo-strip
RUN source $HOME/.cargo/env && cargo install cargo-rpm
# Build for x86_64
RUN source $HOME/.cargo/env && cargo build --release && cargo strip
RUN source $HOME/.cargo/env && cargo build --release
# Build pkgs
RUN source $HOME/.cargo/env && yum -y install rpm-build && cargo rpm init && cargo rpm build
CMD ["sh"]