-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (42 loc) · 1.55 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
# TODO: rewrite to pubspec exec
fix:
fvm dart fix --apply
clean:
fvm flutter clean
repair:
fvm flutter repair
clean_ios:
cd ios && pod deintegrate && pod install
clean_macos:
cd macos && pod deintegrate && pod install
clean_android:
cd android && gradlew clean
get:
fvm flutter pub get
gen:
fvm dart run build_runner build --enable-experiment=inline-class
gen-rewrite:
fvm dart run build_runner build --delete-conflicting-outputs --enable-experiment=inline-class
gen-rewrite-core:
cd packages/core && make gen-rewrite
gen-icons:
fvm dart run flutter_launcher_icons
gen-server-types:
cd apps/core_server_server && serverpod generate
start-server-docker:
cd apps/core_server_server && docker-compose up --build --detach
start-server-dart:
cd apps/core_server_server && fvm dart bin/main.dart
start-server:
make start-server-docker && make start-server-dart
build-web-pwa:
fvm flutter build web --csp --dart-define-from-file=configs/envs/prod.json --dart-define=STORE=xsoulspaceWebsite -t lib/main_prod.dart --pwa-strategy=offline-first && rm -rf release/web && mv build/web release
build-google-play:
fvm flutter build appbundle --dart-define-from-file=configs/envs/prod.json --dart-define=STORE=googlePlay -t lib/main_prod.dart
build-rustore:
fvm flutter build apk --dart-define-from-file=configs/envs/prod.json --dart-define=STORE=rustore -t lib/main_prod.dart
# pass
# as argument: make v="3.19." run
# or be defined as environment: wid="" wis="" v="3.19." make run build-snap
deploy-snap:
snapcraft upload --release=edge last-answer_$(v)_arm64.snap