Strip binaries when packaging

This commit is contained in:
Matéo Duparc 2021-12-03 16:17:22 +01:00
parent 956aea50ef
commit 52c79d28a7
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# doby
Simple, secure and lightweight symmetric encryption from the command line
Simple, secure and lightweight symmetric encryption from the command line.
doby started as a fork of [aef](https://github.com/wyhaya/aef) by [wyhaya](https://github.com/wyhaya) with the goal of becoming a simple, fast and lightweight CLI utility for symmetric encryption. It aims to be an alternative to the old [ccrypt](http://ccrypt.sourceforge.net) tool by using modern cryptography and authenticated encryption.

View File

@ -13,7 +13,7 @@ package_deb() {(
mkdir -p deb/doby/usr/bin deb/doby/usr/share/man/man1 \
deb/doby/usr/share/bash-completion/completions \
deb/doby/usr/share/zsh/vendor-completions &&
cp ../target/release/doby deb/doby/usr/bin &&
strip -s ../target/release/doby -o deb/doby/usr/bin/doby &&
cp ../man/doby.1.gz deb/doby/usr/share/man/man1 &&
cp ../completions/bash deb/doby/usr/share/bash-completion/completions/doby &&
cp ../completions/zsh deb/doby/usr/share/zsh/vendor-completions/_doby &&
@ -24,7 +24,7 @@ package_deb() {(
package_pkg() {(
mkdir pkg/src &&
cp ../target/release/doby pkg/src &&
strip -s ../target/release/doby -o pkg/src/doby &&
cp ../man/doby.1.gz pkg/src &&
cp -r ../completions pkg/src &&
cd pkg && set_version PKGBUILD &&
@ -33,7 +33,7 @@ package_pkg() {(
)}
package_tarball() {(
cp ../target/x86_64-unknown-linux-musl/release/doby tarball/doby &&
strip -s ../target/x86_64-unknown-linux-musl/release/doby -o tarball/doby/doby &&
cp ../man/doby.1.gz tarball/doby &&
cd tarball && tar -chzf ../doby-$version-x86_64.tar.gz doby &&
rm doby/doby*