-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
64 lines (49 loc) · 1.96 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
# The @ makes sure that the command itself isn't echoed in the terminal
help:
@echo "---------------HELP-----------------"
@echo "To clean the workspace type 'make clean'"
@echo "To bootstrap the workspace type 'make bootstrap'"
@echo "To regenerate all generated code type 'make generate'"
@echo "To install dependencies in all packages"
@echo "To upgrade dependencies to latest versions run make upgrade-deps"
@echo "To push the app to an Raspiblitz type 'deploy-to-pi'. Make sure to adjust all values in the script accordingly."
@echo "To run blitz_app in debug mode type 'make run-linux'"
@echo "To run a specific app on Linux type 'run-linux-app-name-mode'"
@echo " Available apps: 'blitz-app'; 'setup-app'; 'regtest-app';"
@echo " Available modes: 'debug'; 'profile'; 'release';"
@echo " Example: 'make run-blitz-app-linux-profile' will run the blitz app in profile mode on Linux"
@echo "To run the app on web type 'run-chrome'"
@echo "------------------------------------"
clean:
melos run clean
bootstrap:
melos bootstrap
generate:
melos run generate
upgrade-deps:
melos run upgrade-deps
run-linux:
bash scripts/run_app_linux.sh blitz_app debug
run-blitz-app-linux-debug:
bash scripts/run_app_linux.sh blitz_app
run-blitz-app-linux-profile:
bash scripts/run_app_linux.sh blitz_app profile
run-blitz-app-linux-release:
bash scripts/run_app_linux.sh blitz_app release
run-setup-app-linux-debug:
bash scripts/run_app_linux.sh setup_app
run-setup-app-linux-profile:
bash scripts/run_app_linux.sh setup_app profile
run-setup-app-linux-release:
bash scripts/run_app_linux.sh setup_app release
run-regtest-app-linux-debug:
bash scripts/run_app_linux.sh regtest_app
run-chrome:
# Clean the workspace, if the app was run in desktop
# mode before, web won't work without a cleanup
flutter clean
flutter run -d chrome
deploy-to-pi:
dart scripts/build_and_push.dart
format:
flutter pub run import_sorter:main && dart format . --fix --set-exit-if-changed