Skip to content

Commit

Permalink
fix bin name
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Dec 23, 2019
1 parent 81eb331 commit 39acd20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ BIN=ydgo
rm -fv ydgo_*

# for normal unix env
ARCH=amd64
for OS in darwin linux; do
CGO_ENABLED=0 GOARCH=amd64 GOOS=$OS go build -o ${BIN}_${OS} -ldflags "${LDFLAGS}"
CGO_ENABLED=0 GOARCH=${ARCH} GOOS=$OS go build -o ${BIN}_${ARCH}_${OS} -ldflags "${LDFLAGS}"
done
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o ${BIN}_windows.exe -ldflags "${LDFLAGS}"
CGO_ENABLED=0 GOARCH=${ARCH} GOOS=windows go build -o ${BIN}_${ARCH}_windows.exe -ldflags "${LDFLAGS}"

0 comments on commit 39acd20

Please sign in to comment.