feat: use zip for windows targetos

This commit is contained in:
James Houlahan
2020-05-18 12:26:54 +02:00
parent 41f6cd3bcd
commit 3c92ff18ff
2 changed files with 12 additions and 1 deletions

View File

@ -37,8 +37,13 @@ ifeq "${TARGET_OS}" "darwin"
endif
EXE_TARGET:=${DEPLOY_DIR}/${TARGET_OS}/${EXE}
TGZ_TARGET:=bridge_${TARGET_OS}_${REVISION}.tgz
ZIP_TARGET:=bridge_${TARGET_OS}_${REVISION}.zip
ifeq "${TARGET_OS}" "windows"
build: ${ZIP_TARGET}
else
build: ${TGZ_TARGET}
endif
build-nogui:
go build ${BUILD_FLAGS_NOGUI} -o Desktop-Bridge cmd/Desktop-Bridge/main.go
@ -47,6 +52,10 @@ ${TGZ_TARGET}: ${DEPLOY_DIR}/${TARGET_OS}
rm -f $@
cd ${DEPLOY_DIR} && tar czf ../../../$@ ${TARGET_OS}
${ZIP_TARGET}: ${DEPLOY_DIR}/${TARGET_OS}
rm -f $@
cd ${DEPLOY_DIR} && zip -r ../../../$@ ${TARGET_OS}
${DEPLOY_DIR}/linux: ${EXE_TARGET}
cp -pf ./internal/frontend/share/icons/logo.svg ${DEPLOY_DIR}/linux/
cp -pf ./LICENSE ${DEPLOY_DIR}/linux/