build: use tar instead of zip
continuous-integration/drone/push Build is failing Details

pull/39/head
Evan Chen 2021-10-24 01:31:25 +08:00
parent 1a9e4c8d67
commit 44fc4c5686
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ var UNIX_SHELL = "sh"
var WIN_SHELL = "cmd"
const version = "0.1.2-rc1"
const build = "97d2e08"
const build = "1a9e4c8"
//go:embed templates
var tmplFS embed.FS

View File

@ -21,7 +21,7 @@ for PLATFORM in $PLATFORMS; do
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build ${LDFLAGS} -o ${DIST}/${BIN_FILENAME} $@"
echo "${CMD}"
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
if [[ "${FAILURES}" != "" ]]; then