-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
80 lines (55 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.PHONY: all secrets test showCoverage analysis run server runServer ipa ios appStoreRelease android playStoreRelease testFlight icons macos screenshots mocks installOnMacos container firebaseOptions dependencies clean
CODE = $(wildcard app/lib/**) $(wildcard app/test/**) $(wildcard pkgs/*/lib/**) $(wildcard pkgs/*/test/**)
ASSETS = $(wildcard assets/**)
SOURCES = $(CODE) $(ASSETS)
all: analysis showCoverage
secrets:
[ -f .env ] && source .env; cd app && flutter pub run tool/generate_secrets_file.dart
test:
./tool/run_tests.sh
report:
./tool/run_tests.sh --report
run:
cd app && flutter run --release $(if $(DEVICE),-d "$(DEVICE)")
icons:
cd app && dart run flutter_launcher_icons
ipa:
cd app && flutter build ipa --release
ios:
cd app && flutter build ios --release
appStoreRelease:
cd app/ios && fastlane release
testflight:
cd app/ios && fastlane beta
android:
cd app && flutter build appbundle --release
playStoreRelease: android
cd app/android && fastlane release
macos:
cd app && flutter build macos --release
installOnMacos: macos
rm -rf /Applications/Scrobbler.app \
&& cp -r app/build/macos/Build/Products/Release/scrobbler.app /Applications/Scrobbler.app
server:
cd pkgs/bluos_monitor_server \
&& mkdir -p build \
&& dart compile exe bin/server.dart -o build/server
runServer:
cd pkgs/bluos_monitor_server && dart bin/server.dart
container:
docker build -t scrobbler-bluos-monitor -f pkgs/bluos_monitor_server/Dockerfile .
screenshots:
cd app \
&& dart tool/screenshots.dart \
&& ( cd ios/fastlane/screenshots && fastlane frameit ) \
&& ( cd android/fastlane/metadata/android && fastlane frameit )
mocks:
cd app && flutter pub run build_runner build --delete-conflicting-outputs
firebaseOptions:
cd app && flutter pub run tool/generate_firebase_options_file.dart
dependencies:
( cd app && flutter pub get ) \
&& ( cd pkgs/bluos_monitor && dart pub get ) \
&& ( cd pkgs/bluos_monitor_server && dart pub get )
clean:
cd app && flutter clean