mirror of
https://github.com/netbirdio/netbird.git
synced 2026-03-31 06:24:18 -04:00
Add basic desktop UI - systray
This PR adds a basic UI for desktop applications that support Linux, Max and Windows.
This commit is contained in:
committed by
GitHub
parent
bd61be24be
commit
4ef3c7a637
42
Makefile
Normal file
42
Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
PACKAGE_NAME := github.com/wiretrustee/wiretrustee/
|
||||
GOLANG_CROSS_VERSION ?= v1.17.6
|
||||
|
||||
SYSROOT_DIR ?= sysroots
|
||||
SYSROOT_ARCHIVE ?= sysroots.tar.bz2
|
||||
|
||||
.PHONY: sysroot-pack
|
||||
sysroot-pack:
|
||||
@tar cf - $(SYSROOT_DIR) -P | pv -s $[$(du -sk $(SYSROOT_DIR) | awk '{print $1}') * 1024] | pbzip2 > $(SYSROOT_ARCHIVE)
|
||||
|
||||
.PHONY: sysroot-unpack
|
||||
sysroot-unpack:
|
||||
@pv $(SYSROOT_ARCHIVE) | pbzip2 -cd | tar -xf -
|
||||
|
||||
.PHONY: release-dry-run
|
||||
release-dry-run:
|
||||
@docker run \
|
||||
--rm \
|
||||
--privileged \
|
||||
-e CGO_ENABLED=1 \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v `pwd`:/go/src/$(PACKAGE_NAME) \
|
||||
-w /go/src/$(PACKAGE_NAME) \
|
||||
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
|
||||
--rm-dist --skip-validate --skip-publish
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
@if [ ! -f ".release-env" ]; then \
|
||||
echo "\033[91m.release-env is required for release\033[0m";\
|
||||
exit 1;\
|
||||
fi
|
||||
docker run \
|
||||
--rm \
|
||||
--privileged \
|
||||
-e CGO_ENABLED=1 \
|
||||
--env-file .release-env \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v `pwd`:/go/src/$(PACKAGE_NAME) \
|
||||
-w /go/src/$(PACKAGE_NAME) \
|
||||
goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
|
||||
release --rm-dist
|
||||
Reference in New Issue
Block a user