forked from WebOfTrust/keep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
99 lines (87 loc) · 2.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
DIR = $(shell pwd)
VER = $(shell git rev-parse --short HEAD)
clean:
rm -rf .cache/ .parcel-cache/ node_modules/ .webcache/ app/static app/dist
root-gar: clean
ifdef debug
echo "true" > app/debug.json;
else
echo "false" > app/debug.json;
endif
python bump_build.py .env.root-gar-local $(VER)
yarn
yarn package:root-gar
python convert_env.py .env.root-gar-local > app/config.json
cd $(DIR)/app; \
npx json -I -f package.json -e "this.sha=\"$(VER)\""; \
yarn;
run-root-gar: root-gar
cd $(DIR)/app; \
yarn; \
yarn start;
pkg-mac-root-gar: root-gar
cd $(DIR)/app; \
yarn; \
APP_ID=$(APP_ID) APPLE_ID=$(APPLE_ID) APPLE_ID_PASSWORD=$(APPLE_APP_PASSWORD) yarn dist;
person: clean
ifdef debug
echo "true" > app/debug.json;
else
echo "false" > app/debug.json;
endif
python bump_build.py .env.person $(VER)
yarn
yarn package:person
python convert_env.py .env.person > app/config.json
cd $(DIR)/app; \
npx json -I -f package.json -e "this.sha=\"$(VER)\""; \
yarn;
pkg-mac-person: person
cd $(DIR)/app; \
yarn; \
APP_ID=$(APP_ID) APPLE_ID=$(APPLE_ID) APPLE_ID_PASSWORD=$(APPLE_APP_PASSWORD) yarn dist;
root-gar-zero: clean
ifdef debug
echo "true" > app/debug.json;
else
echo "false" > app/debug.json;
endif
yarn
yarn package:root-gar-zero
python3 convert_env.py .env.root-gar-local-zero > app/config.json
cd $(DIR)/app; \
LOCAL=true yarn;
root-gar-one: clean
ifdef debug
echo "true" > app/debug.json;
else
echo "false" > app/debug.json;
endif
yarn
yarn package:root-gar-one
python3 convert_env.py .env.root-gar-local-one > app/config.json
cd $(DIR)/app; \
LOCAL=true yarn;
root-gar-two: clean
ifdef debug
echo "true" > app/debug.json;
else
echo "false" > app/debug.json;
endif
yarn
yarn package:root-gar-two
python3 convert_env.py .env.root-gar-local-two > app/config.json
cd $(DIR)/app; \
LOCAL=true yarn;
pkg-mac-root-gar-zero: root-gar-zero
cd $(DIR)/app; \
yarn; \
LOCAL=true yarn dist;
pkg-mac-root-gar-one: root-gar-one
cd $(DIR)/app; \
yarn; \
LOCAL=true yarn dist;
pkg-mac-root-gar-two: root-gar-two
cd $(DIR)/app; \
yarn; \
LOCAL=true yarn dist;