-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 1.02 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
# Nested Makefile for Flutter and Shorebird commands
# Default target
.DEFAULT_GOAL := help
# Helper target
help:
@echo "Available commands:"
@echo " make run-dev - Run Flutter in development mode"
@echo " make run-prod - Run Flutter in production mode"
@echo " make deploy-ios - Deploy to iOS using Shorebird"
@echo " make deploy-ios-patch - Deploy to iOS using Shorebird Patch"
@echo ""
@echo "The -v flag is mandatory for deploy commands. Example:"
# Nested run commands
run:
@echo "Please specify 'dev' or 'prod'"
run-dev:
flutter run -t lib/main_dev.dart --flavor development
run-prod:
flutter run -t lib/main_prod.dart --flavor production
deploy-ios:
shorebird release ios --target ./lib/main_prod.dart --flavor production
deploy-android:
shorebird release android --target ./lib/main_prod.dart --flavor production
deploy-ios-patch:
shorebird patch --platforms=ios --flavor=production --target=./lib/main_prod.dart
.PHONY: help run run-dev run-prod deploy deploy-ios deploy-patch