-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (62 loc) · 1.69 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
FLUTTER := $(shell which flutter)
format:
@echo "╠ Format code..."
$(FLUTTER) format . --line-length 120 --set-exit-if-changed
format-fix:
@echo "╠ Format code..."
$(FLUTTER) format . --line-length 120
analyze:
@echo "╠ Verifying code..."
$(FLUTTER) analyze
test:
@echo "╠ Running tests..."
$(FLUTTER) test
.PHONY: test
outdated:
@echo "╠ Check outdated dependencies..."
$(FLUTTER) pub outdated
upgrade-packages:
@echo "╠ Upgrading dependencies..."
$(FLUTTER) pub upgrade
clean:
@echo "╠ Cleaning project..."
$(FLUTTER) clean
$(FLUTTER) pub get
make format-fix
clean-hard:
@echo "╠ Hard cleaning project..."
rm pubspec.lock
rm ios/Podfile.lock
rm -rf ios/Pods
rm -rf ios/Runner.xcworkspace
cd ios && pod install --repo-update && cd ..
# rm -rf ios/.symlinks
# pod cache clean --all
# rm -rf ios/Flutter/Flutter.framework
# $(FLUTTER) pub cache repair
make clean
$(FLUTTER) pub upgrade
build-android-debug-apk:
@echo "╠ Building android debug apk..."
$(FLUTTER) packages get
$(FLUTTER) clean
$(FLUTTER) build apk --debug
build-android-release-apk:
@echo "╠ Building android release apk..."
$(FLUTTER) packages get
$(FLUTTER) clean
$(FLUTTER) build apk --release
mkdir build-output
cp build/app/outputs/flutter-apk/app-release.apk build-output/
mv build-output/app-release.apk build-output/untis_phasierung_release.apk
build-android-release-aab:
@echo "╠ Building android aab..."
$(FLUTTER) packages get
$(FLUTTER) clean
$(FLUTTER) build appbundle --release
build-macos-release-dmg:
@echo "╠ Building macos release dmg..."
$(FLUTTER) packages get
$(FLUTTER) clean
$(FLUTTER) build macos --release
appdmg dmg/config.json dmg/untis_phasierung.dmg