mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix makefile for signing release
This commit is contained in:
parent
ea5554cf52
commit
8df86d2f5b
18
Makefile
18
Makefile
|
@ -2,7 +2,7 @@ TARGET_ARCH ?= amd64
|
||||||
BUILD_DIR ?= build
|
BUILD_DIR ?= build
|
||||||
BIN_DIR := $(BUILD_DIR)/bbgo
|
BIN_DIR := $(BUILD_DIR)/bbgo
|
||||||
DIST_DIR ?= dist
|
DIST_DIR ?= dist
|
||||||
GIT_DESC = $$(git describe --tags)
|
GIT_DESC := $$(git describe --tags)
|
||||||
|
|
||||||
OSX_APP_NAME = BBGO.app
|
OSX_APP_NAME = BBGO.app
|
||||||
OSX_APP_DIR = build/$(OSX_APP_NAME)
|
OSX_APP_DIR = build/$(OSX_APP_NAME)
|
||||||
|
@ -64,13 +64,15 @@ dist-linux: bbgo-linux bbgo-slim-linux
|
||||||
dist-darwin: bbgo-darwin bbgo-slim-darwin
|
dist-darwin: bbgo-darwin bbgo-slim-darwin
|
||||||
|
|
||||||
dist: version static migrations bbgo-linux bbgo-slim-linux bbgo-darwin bbgo-slim-darwin desktop
|
dist: version static migrations bbgo-linux bbgo-slim-linux bbgo-darwin bbgo-slim-darwin desktop
|
||||||
mkdir -p $(DIST_DIR)/$$(git describe --tags)
|
mkdir -p $(DIST_DIR)/$(GIT_DESC)
|
||||||
for platform in linux darwin ; do \
|
for arch in amd64 ; do \
|
||||||
echo $$platform ; \
|
for platform in linux darwin ; do \
|
||||||
tar -C $(BIN_DIR) -cvzf $(DIST_DIR)/$(GIT_DESC)/bbgo-$(GIT_DESC)-$$platform-amd64.tar.gz bbgo-$$platform ; \
|
echo $$platform ; \
|
||||||
gpg --sign --armor $(DIST_DIR)/$(GIT_DESC)/bbgo-$(GIT_DESC).tar.gz ; \
|
tar -C $(BIN_DIR) -cvzf $(DIST_DIR)/$(GIT_DESC)/bbgo-$(GIT_DESC)-$$platform-$$arch.tar.gz bbgo-$$platform ; \
|
||||||
tar -C $(BIN_DIR) -cvzf $(DIST_DIR)/$(GIT_DESC)/bbgo-$(GIT_DESC)-slim-$$platform-amd64.tar.gz bbgo-slim-$$platform ; \
|
gpg --sign --armor $(DIST_DIR)/$(GIT_DESC)/bbgo-$(GIT_DESC)-$$platform-$$arch.tar.gz ; \
|
||||||
gpg --sign --armor $(DIST_DIR)/$(GIT_DESC)/bbgo-slim-$(GIT_DESC).tar.gz ; \
|
tar -C $(BIN_DIR) -cvzf $(DIST_DIR)/$(GIT_DESC)/bbgo-slim-$(GIT_DESC)-$$platform-$$arch.tar.gz bbgo-slim-$$platform ; \
|
||||||
|
gpg --sign --armor $(DIST_DIR)/$(GIT_DESC)/bbgo-slim-$(GIT_DESC)-$$platform-$$arch.tar.gz ; \
|
||||||
|
done ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
pkg/version/version.go: .git/HEAD
|
pkg/version/version.go: .git/HEAD
|
||||||
|
|
Loading…
Reference in New Issue
Block a user