forked from reisxd/TizenTube
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-wgt_WINDOWS.bat
44 lines (35 loc) · 1.29 KB
/
install-wgt_WINDOWS.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
@echo off
::Make sure that the root directory is right, its the default one here.
set tizen-dir=C:\tizen-studio
::URL to download wgt files
set url=https://github.com/ThowZzy/TizenTube-Legacy/releases/latest/download
::This line goes to the same drive as tizen studio (if launching from another drive)
%tizen-dir:~0,1%:
echo:
set /p userInput="Type here the IP of your TV (make sure you did step 2 before) : "
echo:
echo:
echo =================== WGT Download =====================
echo Downloading wgt files from releases...
echo:
curl -L "%url%/Launcher.wgt" -o "%tizen-dir%/Launcher.wgt"
curl -L "%url%/TizenTube.wgt" -o "%tizen-dir%/TizenTube.wgt"
echo =======================================================
echo:
echo ================= Connecting to the TV ================
cd %tizen-dir%\tools
sdb connect %userInput%
sdb devices
echo =======================================================
echo:
echo =========== Installing applications to the TV ===========
cd ide\bin
call tizen install -n %tizen-dir%\Launcher.wgt
call tizen install -n %tizen-dir%\TizenTube.wgt
echo =========================================================
cd ../..
sdb disconnect %userInput%
echo:
echo The installation process is over. If all went well, you should have the Launcher and TizenTube installed on your TV.
echo:
pause