Files
upstream-corteza/server/webapp/Makefile
upstream-mirror 7e385fc126
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
2026-09-18 01:22:23 +05:00

56 lines
1.9 KiB
Makefile

.PHONY: all install-fresh install-packages build clean cleaner
WGET ?= wget
WGET_FLAGS ?= -q
TAR ?= tar
TAR_FLAGS ?= -xzmok
RELEASE_PAGE ?= https://releases.cortezaproject.org/files
APPS ?= admin compose workflow reporter discovery privacy
ALL_APPS ?= $(APPS) one
VERSION ?= $(shell git describe --tags --abbrev=0)
PACKAGES = $(addprefix corteza-webapp-,$(addsuffix -$(VERSION).tar.gz,$(ALL_APPS)))
SOURCE_LOC ?= "../../webapp-"
SOURCES = $(addprefix $(SOURCE_LOC),$(ALL_APPS))
all: install-packages
install-packages: $(PACKAGES)
$(info installing packages to public/)
@ rm -rf $(addprefix public/,$(APPS))
@ mkdir -p $(addprefix public/,$(APPS))
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-one-$(VERSION).tar.gz -C public
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-admin-$(VERSION).tar.gz -C public/admin
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-compose-$(VERSION).tar.gz -C public/compose
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-workflow-$(VERSION).tar.gz -C public/workflow
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-reporter-$(VERSION).tar.gz -C public/reporter
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-discovery-$(VERSION).tar.gz -C public/discovery
@ $(TAR) $(TAR_FLAGS) -f corteza-webapp-privacy-$(VERSION).tar.gz -C public/privacy
download: $(PACKAGES)
$(PACKAGES):
$(info downloading $(RELEASE_PAGE)/$(@))
@ $(WGET) $(WGET_FLAGS) $(RELEASE_PAGE)/$(@)
install-fresh: build
@ rm -rf public
@ cp -r $(SOURCE_LOC)one/dist public/
@ cp -r $(SOURCE_LOC)admin/dist public/admin
@ cp -r $(SOURCE_LOC)compose/dist public/compose
@ cp -r $(SOURCE_LOC)workflow/dist public/workflow
@ cp -r $(SOURCE_LOC)reporter/dist public/reporter
@ cp -r $(SOURCE_LOC)discovery/dist public/discovery
@ cp -r $(SOURCE_LOC)privacy/dist public/privacy
build: $(SOURCES)
$(SOURCES):
$(info building $(@))
@ cd $(@) && yarn build
clean:
@ rm -f $(PACKAGES)
cleaner:
@ rm -rf public corteza-webapp-*.tar.gz