-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathscript_runner.yaml
123 lines (118 loc) · 5.07 KB
/
script_runner.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
run_cond shell: /bin/zsh
scripts:
# ===============================================================================================
# Android
# ===============================================================================================
- name: android:build:apk
cmd: build android --build --apk
description: Build Android APK only
- name: android:build:bundle
cmd: build android --build --aab
description: Build Android unified bundle (for Play Store release)
- name: android:build:all
cmd: build android --build --apk --aab
description: Build Android unified bundle + standalone APK
- name: android:push
description: Push APK to ADB-connected device
cmd: build android --push
- name: android:install
cmd: build android --install
description: Install APK on Android (does not build)
- name: android:full
cmd: scr android:build:all --install --push
description: Build, push and install APK to ADB connected device
- name: android:release
cmd: build android --release --symbols
description: Builds, collects debug symbols, and places the output in release/ dir.
# ===============================================================================================
# iOS
# ===============================================================================================
- name: ios:build:app
cmd: build ios --build --app
description: Build iOS APP file
- name: ios:build:bundle
cmd: build ios --build --ipa
description: Build iOS IPA file
- name: ios:build:all
cmd: build ios --build --app --ipa
description: Build iOS IPA + APP
- name: ios:pod:update
cmd: build ios --repo-update
description: Install Pods for iOS
- name: ios:release
cmd: build ios --release
description: Builds, and places the output in release/ dir.
# ===============================================================================================
# macOS
# ===============================================================================================
- name: macos:build:app
cmd: build macos --build
description: Build macOS App
- name: macos:build:all
cmd: macos:build:app
description: 'Alias for: Build macOS App'
- name: macos:pod:update
cmd: build macos --repo-update
description: Install Pods for macOS
- name: macos:release
cmd: build macos --build --pack
description: Builds, and places the output in release/ dir.
- name: macos:pack
description: Package macOS app into pkg file
cmd: build macos --pack
# ===============================================================================================
# Web
# ===============================================================================================
- name: web:build
cmd: build web --build
description: Build Web app
- name: web:publish
cmd: build web --publish
description: Publish web version using Firebase (requires build)
- name: web:release
cmd: build web --build --publish
description: Build & publish web version using Firebase
# ===============================================================================================
# All
# ===============================================================================================
- name: build
cmd: android:build:all && ios:build:all && macos:build:all && web:build:all
description: Build for all platforms
- name: apple:pod:update
cmd: macos:pod:update && ios:pod:update
description: Install Pods for macOS & iOS
# ===============================================================================================
# Utils
# ===============================================================================================
- name: build
cmd: . tool/build.sh
- name: format
cmd: dart format --line-length 120
description: Format all Dart files
- name: gen:icons
cmd: flutter pub run icons_launcher:create
description: Generate launcher icons
- name: gen:splash
cmd: flutter pub run flutter_native_splash:create
description: Generate splash screen
- name: gen:module
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k module
description: Generate module from template. Append name to command. See simple-scaffold -h for help.
- name: gen:atom
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k atom
description: Generate atom from template. Append name to command. See simple-scaffold -h for help.
- name: gen:molecule
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k molecule
description: Generate molecule from template. Append name to command. See simple-scaffold -h for help.
- name: gen:organism
cmd: npx -y simple-scaffold@latest -c gen/scaffold.config.js -k organism
description: Generate organism from template. Append name to command. See simple-scaffold -h for help.
- name: intl:build
cmd: runner build -d
description: Build i18n files
- name: intl:watch
cmd: runner watch -d
description: Build u18n files in watch mode
- name: runner
cmd: dart run build_runner
description: Run Build Runner