|
|
|
@ -147,7 +147,7 @@ release-windows:
|
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
|
cd /tmp && $(GO) get -u src.techknowlogick.com/xgo; \
|
|
|
|
|
fi
|
|
|
|
|
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out tea-$(VERSION) .
|
|
|
|
|
GO111MODULE=off xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out tea-$(VERSION) .
|
|
|
|
|
ifeq ($(CI),drone)
|
|
|
|
|
cp /build/* $(DIST)/binaries
|
|
|
|
|
endif
|
|
|
|
@ -157,7 +157,7 @@ release-linux:
|
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
|
cd /tmp && $(GO) get -u src.techknowlogick.com/xgo; \
|
|
|
|
|
fi
|
|
|
|
|
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out tea-$(VERSION) .
|
|
|
|
|
GO111MODULE=off xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out tea-$(VERSION) .
|
|
|
|
|
ifeq ($(CI),drone)
|
|
|
|
|
cp /build/* $(DIST)/binaries
|
|
|
|
|
endif
|
|
|
|
@ -167,7 +167,7 @@ release-darwin:
|
|
|
|
|
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
|
cd /tmp && $(GO) get -u src.techknowlogick.com/xgo; \
|
|
|
|
|
fi
|
|
|
|
|
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out tea-$(VERSION) .
|
|
|
|
|
GO111MODULE=off xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out tea-$(VERSION) .
|
|
|
|
|
ifeq ($(CI),drone)
|
|
|
|
|
cp /build/* $(DIST)/binaries
|
|
|
|
|
endif
|
|
|
|
@ -179,7 +179,7 @@ release-copy:
|
|
|
|
|
.PHONY: release-compress
|
|
|
|
|
release-compress:
|
|
|
|
|
@hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
|
|
|
|
cd /tmp && $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
|
|
|
|
|
GO111MODULE=off $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
|
|
|
|
|
fi
|
|
|
|
|
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
|
|
|
|
|
|
|
|
|
|