]> Sergey Matveev's repositories - nnn.git/commitdiff
Upload static binary as package
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 31 Jan 2020 03:06:53 +0000 (08:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 31 Jan 2020 03:13:35 +0000 (08:43 +0530)
Makefile

index ce2eb93f3ee7f0f636ff5ead60f078ca8d9565ff..b1ed9785de41cb4eeeaff2fe1fce277fa30b3da0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -117,12 +117,14 @@ upload-local: sign static
        curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION).tar.gz.sig' \
            -H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/pgp-signature' \
            --upload-file nnn-$(VERSION).tar.gz.sig
+       tar -cf $(BIN)-static-$(VERSION).x86-64.tar.gz $(BIN)-static
        curl -XPOST 'https://uploads.github.com/repos/jarun/nnn/releases/$(ID)/assets?name=nnn-$(VERSION)-static' \
            -H 'Authorization: token $(NNN_SIG_UPLOAD_TOKEN)' -H 'Content-Type: application/x-sharedlib' \
-           --upload-file $(BIN)-static
+           --upload-file $(BIN)-static-$(VERSION).x86-64.tar.gz
 
 clean:
-       $(RM) -f $(BIN) $(BIN)-static nnn-$(VERSION).tar.gz *.sig
+       $(RM) -f $(BIN) nnn-$(VERSION).tar.gz *.sig \
+           $(BIN)-static $(BIN)-static-$(VERSION).x86-64.tar.gz
 
 skip: ;