@ -497,7 +497,7 @@ release-windows: | $(DIST_DIRS)
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
$( GO) get -u src.techknowlogick.com/xgo; \
$( GO) get -u src.techknowlogick.com/xgo; \
fi
fi
xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$( VERSION) .
GO111MODULE = off xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$( VERSION) .
i f e q ( $( CI ) , d r o n e )
i f e q ( $( CI ) , d r o n e )
cp /build/* $( DIST) /binaries
cp /build/* $( DIST) /binaries
e n d i f
e n d i f
@ -507,7 +507,7 @@ release-linux: | $(DIST_DIRS)
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
$( GO) get -u src.techknowlogick.com/xgo; \
$( GO) get -u src.techknowlogick.com/xgo; \
fi
fi
xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(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 gitea-$( VERSION) .
GO111MODULE = off xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(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 gitea-$( VERSION) .
i f e q ( $( CI ) , d r o n e )
i f e q ( $( CI ) , d r o n e )
cp /build/* $( DIST) /binaries
cp /build/* $( DIST) /binaries
e n d i f
e n d i f
@ -517,7 +517,7 @@ release-darwin: | $(DIST_DIRS)
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
@hash xgo > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
$( GO) get -u src.techknowlogick.com/xgo; \
$( GO) get -u src.techknowlogick.com/xgo; \
fi
fi
xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$( VERSION) .
GO111MODULE = off xgo -go $( XGO_VERSION) -dest $( DIST) /binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$( VERSION) .
i f e q ( $( CI ) , d r o n e )
i f e q ( $( CI ) , d r o n e )
cp /build/* $( DIST) /binaries
cp /build/* $( DIST) /binaries
e n d i f
e n d i f
@ -533,7 +533,7 @@ release-check: | $(DIST_DIRS)
.PHONY : release -compress
.PHONY : release -compress
release-compress : | $( DIST_DIRS )
release-compress : | $( DIST_DIRS )
@hash gxz > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
@hash gxz > /dev/null 2>& 1; if [ $$ ? -ne 0 ] ; then \
$( GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
GO111MODULE = off $( GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
fi
fi
cd $( DIST) /release/; for file in ` find . -type f -name "*" ` ; do echo " compressing $$ {file} " && gxz -k -9 $$ { file} ; done ;
cd $( DIST) /release/; for file in ` find . -type f -name "*" ` ; do echo " compressing $$ {file} " && gxz -k -9 $$ { file} ; done ;