Skip to content

Commit a1a21d6

Browse files
authored
Build release archive (#20)
1 parent 1a7944b commit a1a21d6

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
NAME = vape
22

3+
BUILD_NUMBER=$(shell git rev-parse --short HEAD)
4+
35
build:
46
go build -o $(NAME)
57

8+
clean:
9+
rm -f vape
10+
rm -f bin/vape*
11+
rm -f dist/vape*
12+
13+
release:
14+
GOOS=darwin GOARCH=amd64 go build -o "bin/$(NAME)_darwin_amd64"
15+
GOOS=darwin GOARCH=386 go build -o "bin/$(NAME)_darwin_386"
16+
GOOS=linux GOARCH=amd64 go build -o "bin/$(NAME)_linux_amd64"
17+
GOOS=linux GOARCH=386 go build -o "bin/$(NAME)_linux_386"
18+
tar cvfz dist/vape-$(BUILD_NUMBER).tar.gz bin/vape*
19+
gpg --sign dist/vape-$(BUILD_NUMBER).tar.gz
20+
621
build-docker:
722
docker build -t symm/vape:latest .
823

bin/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

dist/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)