|
|
@ -1,8 +1,8 @@
|
|
|
|
.PHONY: all setup regenerate-i18n web desktop-common linux debian rpm pacman local-pkgbuild local-pkgbuild-install windows windows-portable
|
|
|
|
.PHONY: all setup regenerate-i18n web desktop-common linux debian rpm pacman local-pkgbuild local-pkgbuild-install windows windows-portable
|
|
|
|
.PHONY: web-release debian-release rpm-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release
|
|
|
|
.PHONY: web-release debian-release rpm-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release
|
|
|
|
.PHONY: macos-common macos macos-mas macos-release macos-mas-release icns
|
|
|
|
.PHONY: macos-common macos macos-mas macos-release macos-mas-release icns
|
|
|
|
.PHONY: container-build-debian container-build-fedora container-build-windows
|
|
|
|
.PHONY: container-build-debian container-build-fedora
|
|
|
|
.PHONY: container-web-release container-debian-release container-rpm-release container-appimage-release container-windows-release container-release container-local-pkgbuild
|
|
|
|
.PHONY: container-web-release container-debian-release container-rpm-release container-appimage-release
|
|
|
|
.PHONY: clean undo_setup fixup
|
|
|
|
.PHONY: clean undo_setup fixup
|
|
|
|
.PHONY: fix_yarn_cache
|
|
|
|
.PHONY: fix_yarn_cache
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ all: web
|
|
|
|
|
|
|
|
|
|
|
|
YARN ?= yarnpkg
|
|
|
|
YARN ?= yarnpkg
|
|
|
|
CONTAINER_ENGINE ?= podman
|
|
|
|
CONTAINER_ENGINE ?= podman
|
|
|
|
NODE_VERSION ?= 18
|
|
|
|
NODE_VERSION ?= 16
|
|
|
|
|
|
|
|
|
|
|
|
VERSION := $(shell grep version element-desktop/package.json | sed 's|.*: \"\(.*\)\",|\1|')
|
|
|
|
VERSION := $(shell grep version element-desktop/package.json | sed 's|.*: \"\(.*\)\",|\1|')
|
|
|
|
WEB_APP_NAME := $(shell grep '"name"' element-web/package.json | head -n 1 | sed 's|.*: \"\(.*\)\",|\1|')
|
|
|
|
WEB_APP_NAME := $(shell grep '"name"' element-web/package.json | head -n 1 | sed 's|.*: \"\(.*\)\",|\1|')
|
|
|
@ -39,7 +39,6 @@ OUT_MACOS_MAS := $(DESKTOP_OUT)/mas-universal/$(PRODUCT_NAME).app
|
|
|
|
|
|
|
|
|
|
|
|
CONTAINER_IMAGE_DEBIAN := schildichat-desktop-containerbuild-debian
|
|
|
|
CONTAINER_IMAGE_DEBIAN := schildichat-desktop-containerbuild-debian
|
|
|
|
CONTAINER_IMAGE_FEDORA := schildichat-desktop-containerbuild-fedora
|
|
|
|
CONTAINER_IMAGE_FEDORA := schildichat-desktop-containerbuild-fedora
|
|
|
|
CONTAINER_IMAGE_WINDOWS := schildichat-desktop-containerbuild-windows
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RELEASE_DIR := release
|
|
|
|
RELEASE_DIR := release
|
|
|
|
CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION)
|
|
|
|
CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION)
|
|
|
@ -163,35 +162,22 @@ macos-mas-release: macos-mas
|
|
|
|
cp $(OUT_MACOS_MAS) $(CURRENT_RELEASE_DIR)
|
|
|
|
cp $(OUT_MACOS_MAS) $(CURRENT_RELEASE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
container-build-debian:
|
|
|
|
container-build-debian:
|
|
|
|
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_DEBIAN) -f Containerfile.debian --build-arg NODE_VERSION=$(NODE_VERSION) .
|
|
|
|
$(CONTAINER_ENGINE) build -t $(CONTAINER_IMAGE_DEBIAN) -f Containerfile.debian --build-arg NODE_VERSION=$(NODE_VERSION) .
|
|
|
|
|
|
|
|
|
|
|
|
container-build-fedora:
|
|
|
|
container-build-fedora:
|
|
|
|
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_FEDORA) -f Containerfile.fedora --build-arg NODE_VERSION=$(NODE_VERSION) .
|
|
|
|
$(CONTAINER_ENGINE) build -t $(CONTAINER_IMAGE_FEDORA) -f Containerfile.fedora --build-arg NODE_VERSION=$(NODE_VERSION) .
|
|
|
|
|
|
|
|
|
|
|
|
container-build-windows: container-build-debian
|
|
|
|
|
|
|
|
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_WINDOWS) -f Containerfile.windows --build-arg CONTAINER_IMAGE_DEBIAN=$(CONTAINER_IMAGE_DEBIAN) .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
container-web-release: container-build-debian
|
|
|
|
container-web-release: container-build-debian
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make web-release
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make web-release
|
|
|
|
|
|
|
|
|
|
|
|
container-debian-release: container-build-debian
|
|
|
|
container-debian-release: container-build-debian
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make debian-release
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make debian-release
|
|
|
|
|
|
|
|
|
|
|
|
container-rpm-release: container-build-fedora
|
|
|
|
container-rpm-release: container-build-fedora
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release
|
|
|
|
|
|
|
|
|
|
|
|
container-appimage-release: container-build-debian
|
|
|
|
container-appimage-release: container-build-debian
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make appimage-release
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make appimage-release
|
|
|
|
|
|
|
|
|
|
|
|
container-windows-release: container-build-windows
|
|
|
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_WINDOWS):latest make windows-release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
container-release: container-build-windows container-build-fedora
|
|
|
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_WINDOWS):latest make web-release debian-release appimage-release windows-setup-release windows-portable-release
|
|
|
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
container-local-pkgbuild: container-build-debian
|
|
|
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make local-pkgbuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bom.lock: element-desktop/yarn.lock element-web/yarn.lock matrix-js-sdk/yarn.lock matrix-react-sdk/yarn.lock
|
|
|
|
bom.lock: element-desktop/yarn.lock element-web/yarn.lock matrix-js-sdk/yarn.lock matrix-react-sdk/yarn.lock
|
|
|
|
./build-bom.sh
|
|
|
|
./build-bom.sh
|
|
|
|