-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlutterTools3.0.bat
205 lines (116 loc) · 3.05 KB
/
FlutterTools3.0.bat
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
@ECHO OFF
TITLE FLUTTER DEVELOPER TOOLS BY MIGUELHP
color 2
ECHO ===== FLUTTER DEVELOPER TOOLS BY MIGUELHP ======
ECHO.
ECHO -----------------------------------------
ECHO [1]CREATE PROJECT FLUTTER
ECHO [2]VERIFICATION OF STANDARD COMPONENTS
ECHO [3]DETAILED COMPONENT CHECK
ECHO [4]UPDATE FLUTTER
ECHO [5]REAL EMULATOR DEVICE
ECHO [6]EXIT
ECHO -----------------------------------------
ECHO.
SET /P $TYPE=OPTION SELECTED:
IF %$TYPE% EQU 1 GOTO NEW
IF %$TYPE% EQU 2 GOTO PAD
if %$TYPE% EQU 3 GOTO DET
if %$TYPE% EQU 4 GOTO UPD
if %$TYPE% EQU 5 GOTO DEV
GOTO CLOSE
:NEW
CLS
SET /P $OPTION=Create A New Project[yes/no]:
IF %$OPTION% EQU S OR %$OPTION% EQU yes
(
GOTO GEN
)
ELSE
(
GOTO CLOSE
)
:GEN
CLS
SET /P $pasta=Project Path:
CLS
SET /P $PATHPROJECT=Type the 'br.com.example':
CLS
SET /P $PROJECTNAME=Project Name:
CLS
cd %$pasta%
cmd/c flutter create --org %$PATHPROJECT% %$PROJECTNAME%
//cmd/c code %$pasta%/%$PROJECTNAME%
goto CLOSE
:PAD
CLS
ECHO CHECKING.........
ECHO.
cmd/k flutter doctor
ECHO DONE!
@PAUSE
:DET
CLS
ECHO CHECKING.........
ECHO.
cmd/k flutter doctor -v
ECHO DONE!
@PAUSE
:UPD
CLS
ECHO UPDATING.........
ECHO.
cmd/k flutter upgrade --force
ECHO DONE!
@PAUSE
:DEV
CLS
ECHO -----------------------------------
ECHO - REAL EMULATOR DEVICE MENU -
ECHO -----------------------------------
ECHO.
ECHO -----------------------------------
ECHO [1]MY DEVICES
ECHO [2]CONNECT A NEW DEVICE
ECHO [3]EXIT
ECHO -----------------------------------
ECHO.
SET /P $TYPE2=OPTION SELECTED:
if %$TYPE2% EQU 1 GOTO MD
if %$TYPE2% EQU 2 GOTO CN
GOTO CLOSE
:MD
CLS
cd %userprofile%\AppData\Local\Android\Sdk\platform-tools
adb devices
@PAUSE
GOTO CLOSE
:CN
CLS
ECHO TO CONNECT A NEW DEVICE, YOU MUST CONNECT YOUR ANDROID SMARTPHONE
ECHO TO YOUR COMPUTER THROUGH A USB CABLE:
ECHO ---------------------------------------------------
SET /P $COPTIONS=CONNECTED THE CABLE?, TYPE [yes] TO CONTINUE:
IF %$COPTIONS% EQU yes GOTO STARTCONNECTION
EXIT
:STARTCONNECTION
CLS
ECHO DONE! NOW AND JUST WAIT, WE ARE SETTING UP FOR YOU.
ECHO -----------------------------------------------------------
cd %userprofile%\AppData\Local\Android\Sdk\platform-tools
adb tcpip 5555
@PAUSE
CLS
adb shell ip -f inet addr show wlan0
ECHO ----------------------------------------------------------------------------------------------------------
SET /P $userip= NOW YOU WILL ENTER THE IP FOUND ABOVE, EXAMPLE(inet '192.168.0.111'), SHOWN IN THE SECOND LINE:
adb connect %$userip%:5555
CLS
adb devices
ECHO DONE, DISCONNECT YOUR SMARTPHONE, NOW YOU CAN COMPILE YOUR APPS DIRECTLY ON YOUR PHONE.
ECHO.
ECHO ---------------------------------
ECHO THANKS FOR USING, BY MIGUEL.HP :)
@PAUSE
:CLOSE
exit