mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
feat: add nogui build in makefile
This commit is contained in:
committed by
Jakub Cuth
parent
76b480298a
commit
a1b01d5922
5
Makefile
5
Makefile
@ -2,7 +2,7 @@ export GO111MODULE=on
|
||||
GOOS:=$(shell go env GOOS)
|
||||
|
||||
## Build
|
||||
.PHONY: build check-has-go
|
||||
.PHONY: build build-nogui check-has-go
|
||||
|
||||
VERSION?=1.2.7-git
|
||||
REVISION:=$(shell git rev-parse --short=10 HEAD)
|
||||
@ -36,6 +36,9 @@ TGZ_TARGET:=bridge_${GOOS}_${REVISION}.tgz
|
||||
|
||||
build: ${TGZ_TARGET}
|
||||
|
||||
build-nogui:
|
||||
go build ${BUILD_FLAGS_NOGUI} -o Desktop-Bridge cmd/Desktop-Bridge/main.go
|
||||
|
||||
${TGZ_TARGET}: ${DEPLOY_DIR}/${GOOS}
|
||||
rm -f $@
|
||||
cd ${DEPLOY_DIR} && tar czf ../../../$@ ${GOOS}
|
||||
|
||||
Reference in New Issue
Block a user