Skip to content

Commit

Permalink
build: use proper names for tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
shelepuginivan committed Feb 27, 2024
1 parent f111f1e commit 7292b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ linux:
GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -trimpath -o ${TARGET_DIR}/linux/${BINARY_NAME}-server ./cmd/hakutest-server
GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -trimpath -o ${TARGET_DIR}/linux/${BINARY_NAME}-statistics ./cmd/hakutest-statistics
cp -r web ${TARGET_DIR}/linux
tar -czf ${TARGET_DIR}/${BINARY_NAME}-linux.tar.gz --transform 's/^./${BINARY_NAME}/' -C ${TARGET_DIR}/linux .
tar -czf ${TARGET_DIR}/${BINARY_NAME}-linux64.tar.gz --transform 's/^./${BINARY_NAME}/' -C ${TARGET_DIR}/linux .
rm -r ${TARGET_DIR}/linux

windows:
Expand All @@ -26,7 +26,7 @@ windows:
mac:
GOARCH=amd64 GOOS=darwin go build -trimpath -o ${TARGET_DIR}/mac/${BINARY_NAME} ./cmd/hakutest
cp -r web ${TARGET_DIR}/mac
tar -czf ${TARGET_DIR}/${BINARY_NAME}-mac.tar.gz --transform 's/^./${BINARY_NAME}/' -C ${TARGET_DIR}/mac .
tar -czf ${TARGET_DIR}/${BINARY_NAME}-macos.tar.gz --transform 's/^./${BINARY_NAME}/' -C ${TARGET_DIR}/mac .
rm -r ${TARGET_DIR}/mac

manual:
Expand Down

0 comments on commit 7292b93

Please sign in to comment.