-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublishWebFiles.bat
46 lines (33 loc) · 1.13 KB
/
publishWebFiles.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
@echo off
echo.
@REM *** HomeDing Update of WebFiles tool. ***
@REM
@REM This utility copies the dist files to
@REM - the documentation project for the .
@REM - the samples folders standard and minimal.
@REM
@REM Create the distribution files using `npm run build` and `npm run pack`
echo *** Updating public released files on homeding.github.io...
if [%1]==[] (
echo missing version parameter
echo use updateWebFiles.bat v10
goto :end
)
set version=%1
set tar=%USERPROFILE%\Projects\homeding-docu
set rcflags=/XO /FFT /NJH /NS /NC /NFL /NDL /NJS
robocopy dist %tar%\%version% /S /PURGE %rcflags%
echo copied: Full WebUI
robocopy dist-mini %tar%\%version%m /S /PURGE %rcflags%
echo copied: Minimal WebUI
echo.
echo *** Updating data folders in examples
set tar=%USERPROFILE%\Documents\Arduino\libraries\HomeDing
robocopy dist %tar%\examples\standard\data /S /PURGE %rcflags% /XF list.txt
echo copied: standard example
robocopy dist-mini %tar%\examples\minimal\data /S /PURGE %rcflags% /XF list.txt
echo copied: minimal example
copy upload.h %tar%\src
echo copied: upload.h
echo done.
:end