mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 01:23:22 +01:00
4ef3c7a637
This PR adds a basic UI for desktop applications that support Linux, Max and Windows.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
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
|