mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
do not complie windows twice, always pack to tgz
This commit is contained in:
14
Makefile
14
Makefile
@ -28,7 +28,7 @@ ICO_FILES:=
|
||||
EXE:=$(shell basename ${CURDIR})
|
||||
|
||||
ifeq "${TARGET_OS}" "windows"
|
||||
EXE+=.exe
|
||||
EXE:=${EXE}.exe
|
||||
ICO_FILES:=logo.ico icon.rc icon_windows.syso
|
||||
endif
|
||||
ifeq "${TARGET_OS}" "darwin"
|
||||
@ -37,15 +37,9 @@ 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_TARGET:=${ZIP_TARGET}
|
||||
else
|
||||
BUILD_TARGET:=${TGZ_TARGET}
|
||||
endif
|
||||
|
||||
build: ${BUILD_TARGET}
|
||||
build: ${TGZ_TARGET}
|
||||
|
||||
build-nogui:
|
||||
go build ${BUILD_FLAGS_NOGUI} -o Desktop-Bridge cmd/Desktop-Bridge/main.go
|
||||
@ -54,10 +48,6 @@ ${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/
|
||||
|
||||
Reference in New Issue
Block a user