forked from rive-app/rive_live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (47 loc) · 1.48 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
# GET DEPENDENCIES
get_all:
make get_web_app
make get_overlay_app
make get_webserver
get_web_app:
cd apps/rive_live_webapp/ && flutter pub get
get_overlay_app:
cd apps/rive_overlay_app/ && flutter pub get
get_webserver:
cd network && dart pub get
# RUN LOCAL - Run apps locally, pointing to localhost
run_local_all:
make run_local_web_server & make run_local_web_app & make run_local_overlay_app
run_local_web_server:
cd network && dart_frog dev
run_local_web_app:
cd apps/rive_live_webapp/ && flutter run -d chrome
run_local_overlay_app:
cd apps/rive_overlay_app/ && flutter run -d macos
# RUN PROD - Run apps locally, pointing to prod
run_prod_web_app:
cd apps/rive_live_webapp/ && flutter run -d chrome --dart-define-from-file=../../config.json
run_prod_overlay_app:
cd apps/rive_overlay_app/ && flutter run -d macos --dart-define-from-file=../../config.json
# BUILD
clean_and_build_all:
make clean_all
make build_all
build_all:
make build_web_app
make build_overlay_app
make build_webserver
build_webserver:
cd network && dart_frog build
build_overlay_app:
cd apps/rive_overlay_app/ && flutter build macos --dart-define-from-file=../../config.json
build_web_app:
cd apps/rive_live_webapp/ && flutter build web --dart-define-from-file=../../config.json
#CLEAN
clean_all:
make clean_web_app
make clean_overlay_app
clean_overlay_app:
cd apps/rive_overlay_app/ && flutter clean && flutter pub get
clean_web_app:
cd apps/rive_live_webapp/ && flutter clean && flutter pub get