forked from nextcloud/mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (45 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile for building the project
app_name=mail
project_dir=$(CURDIR)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
all: appstore
clean:
rm -rf $(build_dir)
rm -rf node_modules
install-deps: install-composer-deps-dev install-npm-deps-dev
install-composer-deps:
composer install --no-dev -o
install-composer-deps-dev:
composer install -o
install-npm-deps:
npm install --production
install-npm-deps-dev:
npm install
optimize-js: install-npm-deps-dev
npm run build
build-js:
npm run dev
build-js-production:
npm run build
watch-js:
npm run watch
dev-setup: install-composer-deps-dev install-npm-deps-dev build-js
start-docker:
docker pull ghcr.io/christophwurst/docker-imap-devel
docker run --name="ncmailtest" -d \
-p 25:25 \
-p 143:143 \
-p 993:993 \
-p 4190:4190 \
--hostname mail.domain.tld \
-e MAILNAME=mail.domain.tld \
-e [email protected] \
-e MAIL_PASS=mypassword \
ghcr.io/christophwurst/docker-imap-devel
appstore:
krankerl package