zip windows file.

This commit is contained in:
David Newhall II 2019-06-21 02:45:46 -07:00
parent 756dbf3574
commit 56cef47f8f
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ addons:
- git
- libgnome-keyring-dev
- fakeroot
- zip
go:
- 1.12.x
services:

View File

@ -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