strip binary before packing (#533)

reduce by 35-40% size of binaries and archive
This commit is contained in:
fdb-hiroshima 2019-04-19 16:13:40 +02:00 committed by GitHub
parent 6bb4f8514f
commit 6acb962e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2,4 +2,5 @@
mkdir bin mkdir bin
cp target/release/{plume,plm} bin cp target/release/{plume,plm} bin
cp "$(which diesel)" bin cp "$(which diesel)" bin
strip -s bin/*
tar -cvzf plume.tar.gz bin/ static/ migrations/$FEATURES tar -cvzf plume.tar.gz bin/ static/ migrations/$FEATURES