Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kost committed Dec 26, 2019
1 parent d5a0d46 commit 2a7bdab
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
VERSION=1.0.0

bins: dep
cd make-static-appimage && go build
cd ..
cd static-appimage-runtime && go build

dep:
go get -u ./...
#go get

tools:
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr

ver:
echo version $(VERSION)

gittag:
git tag v$(VERSION)
git push --tags origin master

clean:
rm -rf dist

dist:
mkdir -p dist

gox:
cd make-static-appimage && CGO_ENABLED=0 gox -ldflags="-s -w" -output="../dist/{{.Dir}}_{{.OS}}_{{.Arch}}"
cd static-appimage-runtime && CGO_ENABLED=0 gox -ldflags="-s -w" -output="../dist/{{.Dir}}_{{.OS}}_{{.Arch}}"

draft:
ghr -draft v$(VERSION) dist/



0 comments on commit 2a7bdab

Please sign in to comment.