Skip to content

Commit

Permalink
build for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
nekottyo committed Jun 1, 2020
1 parent d49dfe1 commit c39cc11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

PKG_NAME = alfred-datadog-workflow
RELEASE_DIR := release
BUILD_CMD := CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"'

build: get tidy
@go build -o ${PKG_NAME} .
@${BUILD_CMD} -o ${PKG_NAME} ${LDFLAGS} .

get:
@go get -v -t -d ./...
Expand All @@ -20,7 +21,7 @@ lint:

action-release: get
@mkdir -p ${RELEASE_DIR}
@go build -o ${RELEASE_DIR}/${PKG_NAME} .
@${BUILD_CMD} ${RELEASE_DIR}/${PKG_NAME} ${LDFLAGS} .
@cp info.plist icon.png LICENSE README.md ${RELEASE_DIR}

clean-release:
Expand Down

0 comments on commit c39cc11

Please sign in to comment.