From 52c79d28a7807dbadaadc646647c28bcc347a278 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Fri, 3 Dec 2021 16:17:22 +0100 Subject: [PATCH] Strip binaries when packaging --- README.md | 2 +- packaging/package.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b00ed1..fdd6edc 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/packaging/package.sh b/packaging/package.sh index 94769ef..88b0e3e 100755 --- a/packaging/package.sh +++ b/packaging/package.sh @@ -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*