From 30ca3ecca65d06ebc1d0794f3968397709aff9a8 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 23 Aug 2017 18:06:53 -0400 Subject: [PATCH] ci: strip ripgrep binary on Unix This commit strips the ripgrep binary release artifact produced by CI for Unix. Fixes #413 --- ci/before_deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index d15105ca9..ed5795c0f 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -18,9 +18,12 @@ mk_tarball() { mkdir "$td/$name" mkdir "$td/$name/complete" - cp target/$TARGET/release/rg "$td/$name/" + cp target/$TARGET/release/rg "$td/$name/rg" + strip "$td/$name/rg" cp {doc/rg.1,README.md,UNLICENSE,COPYING,LICENSE-MIT} "$td/$name/" - cp target/$TARGET/release/build/ripgrep-*/out/{rg.bash-completion,rg.fish,_rg.ps1} "$td/$name/complete/" + cp \ + target/$TARGET/release/build/ripgrep-*/out/{rg.bash-completion,rg.fish,_rg.ps1} \ + "$td/$name/complete/" cp complete/_rg "$td/$name/complete/" pushd $td