-
Notifications
You must be signed in to change notification settings - Fork 1
/
uploader.bat
33 lines (28 loc) · 1.12 KB
/
uploader.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
set PYTHONPATH=%~dp0DLLs;%~dp0libs;%~dp0lib
python.exe helper.py
if errorlevel 1 pause&&exit
if exist kindleear goto kindle
if exist kindleear-master\kindleear-master goto master-master
if exist kindleear-master goto master
echo "Cannot find KindleEar"
goto end
:kindle
if not exist kindleear\module-worker.yaml goto kindle-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear\app.yaml kindleear\module-worker.yaml
:kindle-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear
goto end
:master
if not exist kindleear-master\module-worker.yaml goto master-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear-master\app.yaml kindleear-master\module-worker.yaml
:master-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear-master
goto end
:master-master
if not exist kindleear-master\kindleear-master\module-worker.yaml goto mm-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear-master\kindleear-master\app.yaml kindleear-master\kindleear-master\module-worker.yaml
:mm-dir
python.exe appcfg.py --skip_sdk_update_check update kindleear-master\kindleear-master
goto end
:end
pause