Skip to content

Commit

Permalink
Compress vault operator binary (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Apr 20, 2018
1 parent 0798cbf commit 16bdc1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ def gen():

def build_cmd(name):
cfg = libbuild.BIN_MATRIX[name]
entrypoint='*.go'
compress = libbuild.ENV in ['prod']
if cfg['type'] == 'go':
if 'distro' in cfg:
for goos, archs in cfg['distro'].items():
for goarch in archs:
libbuild.go_build(name, goos, goarch, main='*.go')
libbuild.go_build(name, goos, goarch, entrypoint, compress)
else:
libbuild.go_build(name, libbuild.GOHOSTOS, libbuild.GOHOSTARCH, main='*.go')
libbuild.go_build(name, libbuild.GOHOSTOS, libbuild.GOHOSTARCH, entrypoint, compress)


def build_cmds():
Expand Down

0 comments on commit 16bdc1a

Please sign in to comment.