-
Notifications
You must be signed in to change notification settings - Fork 183
/
deploy.bat
25 lines (23 loc) · 859 Bytes
/
deploy.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
@echo off
echo Deploying...
REM
REM "D:\DevelTools\sdk\" change to android sdk path
REM
echo Initializing Device
D:\DevelTools\sdk\platform-tools\adb shell mount -a
D:\DevelTools\sdk\platform-tools\adb shell mkdir -p /sdcard/0/
echo Copiying zip file
D:\DevelTools\sdk\platform-tools\adb push out/aroma.zip /sdcard/0/aroma.zip
echo Copiying Binary File
D:\DevelTools\sdk\platform-tools\adb push out/aroma_installer /tmp/update-binary
echo CHMOD
D:\DevelTools\sdk\platform-tools\adb shell chmod 777 /tmp/update-binary
echo STARTING
echo --------------------------------------------------------
echo.
D:\DevelTools\sdk\platform-tools\adb shell /tmp/update-binary 1 0 /sdcard/0/aroma.zip
echo.
echo --------------------------------------------------------
echo CTRL-C = Save, Enter = Clean
pause
D:\DevelTools\sdk\platform-tools\adb shell rm /tmp/update-binary