build: use tar instead of zip
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
1a9e4c8d67
commit
44fc4c5686
|
@ -14,7 +14,7 @@ var UNIX_SHELL = "sh"
|
||||||
var WIN_SHELL = "cmd"
|
var WIN_SHELL = "cmd"
|
||||||
|
|
||||||
const version = "0.1.2-rc1"
|
const version = "0.1.2-rc1"
|
||||||
const build = "97d2e08"
|
const build = "1a9e4c8"
|
||||||
|
|
||||||
//go:embed templates
|
//go:embed templates
|
||||||
var tmplFS embed.FS
|
var tmplFS embed.FS
|
||||||
|
|
|
@ -21,7 +21,7 @@ for PLATFORM in $PLATFORMS; do
|
||||||
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build ${LDFLAGS} -o ${DIST}/${BIN_FILENAME} $@"
|
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build ${LDFLAGS} -o ${DIST}/${BIN_FILENAME} $@"
|
||||||
echo "${CMD}"
|
echo "${CMD}"
|
||||||
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
|
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
|
||||||
sh -c "cd ${DIST} && zip ${PROJ}-${VERSION}-${GOOS}-${GOARCH}.zip ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
sh -c "cd ${DIST} && tar -czf ${PROJ}-${VERSION}-${GOOS}-${GOARCH}.tar.gz ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${FAILURES}" != "" ]]; then
|
if [[ "${FAILURES}" != "" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue