-
Notifications
You must be signed in to change notification settings - Fork 2
/
CompileJavaScriptUX.bat
267 lines (199 loc) · 11.9 KB
/
CompileJavaScriptUX.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
REM OWLOS DIY Open Source OS for building IoT ecosystems
REM Copyright 2019, 2020 by:
REM - Konstantin Brul ([email protected])
REM - Vitalii Glushchenko ([email protected])
REM - Denys Melnychuk ([email protected])
REM - Denis Kirin ([email protected])
REM This file is part of OWLOS DIY Open Source OS for building IoT ecosystems
REM OWLOS is free software : you can redistribute it and/or modify it under the
REM terms of the GNU General Public License as published by the Free Software
REM Foundation, either version 3 of the License, or (at your option) any later
REM version.
REM OWLOS is distributed in the hope that it will be useful, but WITHOUT ANY
REM WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
REM FOR A PARTICULAR PURPOSE.
REM See the GNU General Public License for more details.
REM You should have received a copy of the GNU General Public License along
REM with OWLOS. If not, see < https://www.gnu.org/licenses/>.
REM GitHub: https://github.com/KirinDenis/owlos
REM :: UTF-8 CodePage
REM (Этот файл — часть OWLOS DIY Open Source OS for building IoT ecosystems.
REM OWLOS - свободная программа: вы можете перераспространять ее и/или изменять
REM ее на условиях Стандартной общественной лицензии GNU в том виде, в каком она
REM была опубликована Фондом свободного программного обеспечения; версии 3
REM лицензии, любой более поздней версии.
REM OWLOS распространяется в надежде, что она будет полезной, но БЕЗО ВСЯКИХ
REM ГАРАНТИЙ; даже без неявной гарантии ТОВАРНОГО ВИДА или ПРИГОДНОСТИ ДЛЯ
REM ОПРЕДЕЛЕННЫХ ЦЕЛЕЙ.
REM Подробнее см.в Стандартной общественной лицензии GNU.
REM Вы должны были получить копию Стандартной общественной лицензии GNU вместе с
REM этой программой. Если это не так, см. <https://www.gnu.org/licenses/>.)
REM ---------------------------------------------------------------------------------
REM Сжимает и упоковывает OWLOSJavaSctiptUX в OWLOS\data для последующей загрузки на контроллер.
REM Смотрите PlatformIO.ini файл.
REM Смотрите документ: https://docs.platformio.org/en/latest/platforms/espressif8266.html#uploading-files-to-filesystem
REM unREM copy and put destination path, to copy content to different path
@ECHO GZ and REM copy JavaScript sources
CD OWLOSJavaScriptUX
MKDIR "CompressedFull"
del /Q "CompressedFull\*.*"
MKDIR "CompressedPackOne"
del /Q "CompressedPackOne\*.*"
D:\7Zip\7z.exe a -mx9 index.html.gz index.html
move "index.html.gz" "CompressedFull\index.html.gz"
D:\7Zip\7z.exe a -mx9 indexpack.html.gz indexpack.html
move "indexpack.html.gz" "CompressedPackOne\index.html.gz"
copy "indexpack.html" "CompressedPackOne\index.html"
D:\7Zip\7z.exe a -mx9 jquery.min.js.gz jquery.min.js
move "jquery.min.js.gz" "CompressedFull\jquery.min.js.gz"
type "jquery.min.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 jquery.dataTables.min.js.gz jquery.dataTables.min.js
move "jquery.dataTables.min.js.gz" "CompressedFull\jquery.dataTables.min.js.gz"
type "jquery.dataTables.min.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dataTables.min.css.gz dataTables.min.css
move "dataTables.min.css.gz" "CompressedFull\dataTables.min.css.gz"
type "dataTables.min.css" >> "CompressedPackOne\owlos.css"
D:\7Zip\7z.exe a -mx9 popper.min.js.gz popper.min.js
move "popper.min.js.gz" "CompressedFull\popper.min.js.gz"
type "popper.min.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 bootstrap.min.css.gz bootstrap.min.css
move "bootstrap.min.css.gz" "CompressedFull\bootstrap.min.css.gz"
type "bootstrap.min.css" >> "CompressedPackOne\owlos.css"
D:\7Zip\7z.exe a -mx9 bootstrap.min.js.gz bootstrap.min.js
move "bootstrap.min.js.gz" "CompressedFull\bootstrap.min.js.gz"
type "bootstrap.min.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 ui.css.gz ui.css
move "ui.css.gz" "CompressedFull\ui.css.gz"
type "ui.css" >> "CompressedPackOne\owlos.css"
D:\7Zip\7z.exe a -mx9 dialoginputelement.js.gz dialoginputelement.js
move "dialoginputelement.js.gz" "CompressedFull\dialoginputelement.js.gz"
type "dialoginputelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 buttonelement.js.gz buttonelement.js
move "buttonelement.js.gz" "CompressedFull\buttonelement.js.gz"
type "buttonelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dialogelement.js.gz dialogelement.js
move "dialogelement.js.gz" "CompressedFull\dialogelement.js.gz"
type "dialogelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dialoglabelelement.js.gz dialoglabelelement.js
move "dialoglabelelement.js.gz" "CompressedFull\dialoglabelelement.js.gz"
type "dialoglabelelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dialoginputelement.js.gz dialoginputelement.js
move "dialoginputelement.js.gz" "CompressedFull\dialoginputelement.js.gz"
type "dialoginputelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dialogprogressbarelement.js.gz dialogprogressbarelement.js
move "dialogprogressbarelement.js.gz" "CompressedFull\dialogprogressbarelement.js.gz"
type "dialogprogressbarelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dialogselectelement.js.gz dialogselectelement.js
move "dialogselectelement.js.gz" "CompressedFull\dialogselectelement.js.gz"
type "dialogselectelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 sidebarelement.js.gz sidebarelement.js
move "sidebarelement.js.gz" "CompressedFull\sidebarelement.js.gz"
type "sidebarelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 valueeditorelement.js.gz valueeditorelement.js
move "valueeditorelement.js.gz" "CompressedFull\valueeditorelement.js.gz"
type "valueeditorelement.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 headerpanelui.js.gz headerpanelui.js
move "headerpanelui.js.gz" "CompressedFull\headerpanelui.js.gz"
type "headerpanelui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 scriptsui.js.gz scriptsui.js
move "scriptsui.js.gz" "CompressedFull\scriptsui.js.gz"
type "scriptsui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 dashboardui.js.gz dashboardui.js
move "dashboardui.js.gz" "CompressedFull\dashboardui.js.gz"
type "dashboardui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 filespanelui.js.gz filespanelui.js
move "filespanelui.js.gz" "CompressedFull\filespanelui.js.gz"
type "filespanelui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 basewidget.js.gz basewidget.js
move "basewidget.js.gz" "CompressedFull\basewidget.js.gz"
type "basewidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 lcdwidget.js.gz lcdwidget.js
move "lcdwidget.js.gz" "CompressedFull\lcdwidget.js.gz"
type "lcdwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 lightwidget.js.gz lightwidget.js
move "lightwidget.js.gz" "CompressedFull\lightwidget.js.gz"
type "lightwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 lcdwidget.js.gz lcdwidget.js
move "lcdwidget.js.gz" "CompressedFull\lcdwidget.js.gz"
type "lcdwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 lightwidget.js.gz lightwidget.js
move "lightwidget.js.gz" "CompressedFull\lightwidget.js.gz"
type "lightwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 motionwidget.js.gz motionwidget.js
move "motionwidget.js.gz" "CompressedFull\motionwidget.js.gz"
type "motionwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 settingsui.js.gz settingsui.js
move "settingsui.js.gz" "CompressedFull\settingsui.js.gz"
type "settingsui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 radialwidget.js.gz radialwidget.js
move "radialwidget.js.gz" "CompressedFull\radialwidget.js.gz"
type "radialwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 smokewidget.js.gz smokewidget.js
move "smokewidget.js.gz" "CompressedFull\smokewidget.js.gz"
type "smokewidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 stepperwidget.js.gz stepperwidget.js
move "stepperwidget.js.gz" "CompressedFull\stepperwidget.js.gz"
type "stepperwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 temperaturewidget.js.gz temperaturewidget.js
move "temperaturewidget.js.gz" "CompressedFull\temperaturewidget.js.gz"
type "temperaturewidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 graphwidget.js.gz graphwidget.js
move "graphwidget.js.gz" "CompressedFull\graphwidget.js.gz"
type "graphwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 tablewidget.js.gz tablewidget.js
move "tablewidget.js.gz" "CompressedFull\tablewidget.js.gz"
type "tablewidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 valuewidget.js.gz valuewidget.js
move "valuewidget.js.gz" "CompressedFull\valuewidget.js.gz"
type "valuewidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 actuatorwidget.js.gz actuatorwidget.js
move "actuatorwidget.js.gz" "CompressedFull\actuatorwidget.js.gz"
type "actuatorwidget.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 restclientcore.js.gz restclientcore.js
move "restclientcore.js.gz" "CompressedFull\restclientcore.js.gz"
type "restclientcore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 scriptscore.js.gz scriptscore.js
move "scriptscore.js.gz" "CompressedFull\scriptscore.js.gz"
type "scriptscore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 configcore.js.gz configcore.js
move "configcore.js.gz" "CompressedFull\configcore.js.gz"
type "configcore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 speechcore.js.gz speechcore.js
move "speechcore.js.gz" "CompressedFull\speechcore.js.gz"
type "speechcore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 driverscore.js.gz driverscore.js
move "driverscore.js.gz" "CompressedFull\driverscore.js.gz"
type "driverscore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 driversui.js.gz driversui.js
move "driversui.js.gz" "CompressedFull\driversui.js.gz"
type "driversui.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 drawcore.js.gz drawcore.js
move "drawcore.js.gz" "CompressedFull\drawcore.js.gz"
type "drawcore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 languagescore.js.gz languagescore.js
move "languagescore.js.gz" "CompressedFull\languagescore.js.gz"
type "languagescore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 widgetswrappers.js.gz widgetswrappers.js
move "widgetswrappers.js.gz" "CompressedFull\widgetswrappers.js.gz"
type "widgetswrappers.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 bootcore.js.gz bootcore.js
move "bootcore.js.gz" "CompressedFull\bootcore.js.gz"
type "bootcore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 pinscore.js.gz pinscore.js
move "pinscore.js.gz" "CompressedFull\pinscore.js.gz"
type "pinscore.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 index.js.gz index.js
move "index.js.gz" "CompressedFull\index.js.gz"
type "index.js" >> "CompressedPackOne\owlos.js"
D:\7Zip\7z.exe a -mx9 index.js.gz index.js
move "index.js.gz" "CompressedFull\index.js.gz"
type "index.js" >> "CompressedPackOne\owlos.js"
CD "CompressedPackOne"
D:\7Zip\7z.exe a -mx9 owlos.js.gz owlos.js
D:\7Zip\7z.exe a -mx9 owlos.css.gz owlos.css
move "index.html.gz" "..\..\OWLOS\data\"
move "owlos.js.gz" "..\..\OWLOS\data\"
move "owlos.css.gz" "..\..\OWLOS\data\"
copy "..\..\OWLOS\lib\TFT_eSPI\examples\Smooth Fonts\SPIFFS\Font_Demo_1\data\*" "..\..\OWLOS\data\*"
REM copy "updateinfo.html" "updateinfo.html"
CD ..