diff --git a/.travis.yml b/.travis.yml index 160ffa71..2c1449d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ addons: - git - libgnome-keyring-dev - fakeroot + - zip go: - 1.12.x services: diff --git a/Makefile b/Makefile index 002a2862..ba1857dc 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,9 @@ all: man build release: clean test macos windows $(BINARY)-$(RPMVERSION)-$(ITERATION).x86_64.rpm $(BINARY)_$(VERSION)-$(ITERATION)_amd64.deb # Prepareing a release! mkdir -p release - mv $(BINARY).linux $(BINARY).macos $(BINARY).exe release/ + mv $(BINARY).linux $(BINARY).macos release/ gzip -9r release/ + zip -9qm release/unifi-poller.exe.zip unifi-poller.exe mv $(BINARY)-$(RPMVERSION)-$(ITERATION).x86_64.rpm $(BINARY)_$(VERSION)-$(ITERATION)_amd64.deb release/ # Generating File Hashes for i in release/*; do (openssl dgst -r -sha256 "$$i" | head -c64 ; echo) | tee "$$i.sha256.txt"; done