forked from nextcloud/mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (55 loc) · 1.52 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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
docker_image=christophwurst/nextcloud-mail-test-docker
mail_user=user@domain.tld
mail_pwd=mypassword
all: appstore
clean:
rm -rf $(build_dir)
rm -rf node_modules
composer.phar:
curl -sS https://getcomposer.org/installer | php
install-deps: install-composer-deps-dev install-npm-deps-dev
install-composer-deps: composer.phar
php composer.phar install --no-dev -o
install-composer-deps-dev: composer.phar
php composer.phar 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 optimize-js
start-imap-docker:
docker pull $(docker_image)
docker run --name="ncimaptest" -d \
-p 993:993 \
-e POSTFIX_HOSTNAME=mail.domain.tld $(docker_image)
start-smtp-docker:
docker pull catatnight/postfix
docker run --name="ncsmtptest" -d \
-e maildomain=domain.tld \
-e smtp_user=user@domain.tld:mypassword \
-p 2525:25 \
catatnight/postfix
add-imap-account:
docker exec -it ncimaptest /opt/bin/useradd $(mail_user) $(mail_pwd)
update-composer: composer.phar
rm -f composer.lock
php composer.phar install --prefer-dist
appstore:
krankerl package