Skip to content
Permalink
Browse files

support binary releases

  • Loading branch information
Collin Mulliner
Collin Mulliner committed Feb 19, 2020
1 parent 6928bf1 commit faaefdd0dec08e23ee16b66a5cbd4c57bf649dc1
Showing with 12 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 Changelog.md
  3. +8 −0 Makefile
@@ -1 +1,2 @@
build/**
release/
@@ -1,4 +1,7 @@
# Change Log
<!---
Always update Version in Makefile
-->

## Unreleased

@@ -4,6 +4,8 @@ ifeq ($(GOOS),)
GOOS := "linux"
endif

VERSION=1.3.2

PWD := $(shell pwd)

all: build
@@ -14,6 +16,12 @@ build:
mkdir -p build
GOOS=$(GOOS) go build -a -ldflags '-w -s' -o build/fwanalyzer ./cmd/fwanalyzer

.PHONY: release
release: build
mkdir -p release
cp build/fwanalyzer release/fwanalyzer-$(VERSION)-linux-amd64
git add -f release/fwanalyzer-$(VERSION)-linux-amd64

.PHONY: test
test: lint build
gunzip -c test/test.img.gz >test/test.img

0 comments on commit faaefdd

Please sign in to comment.
You can’t perform that action at this time.