aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-14 10:56:18 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-11-14 10:56:18 +0530
commit0bfc590f90224e2ee37f6b90408b74dcf26dfcc0 (patch)
tree291e2bd8dfeb4f91d05c750e70074159677b704c /Makefile
parent13923117dc21ab4e2d5111842ee5c7c5f71c1cf4 (diff)
downloadnnn-0bfc590f90224e2ee37f6b90408b74dcf26dfcc0.tar.gz
upx compress all static binaries before upload
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 383f984..97f22ab 100644
--- a/Makefile
+++ b/Makefile
@@ -199,6 +199,10 @@ upload-local: sign static
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \
--upload-file nnn-$(VERSION).tar.gz.sig
tar -zcf $(BIN)-static-$(VERSION).x86_64.tar.gz $(BIN)-static
+ # upx compress all static binaries
+ upx -qqq $(BIN)-static
+ upx -qqq $(BIN)-icons-static
+ upx -qqq $(BIN)-nerd-static
# upload static binary
curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=$(BIN)-static-$(VERSION).x86_64.tar.gz' \
-H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/x-sharedlib' \