forked from reisxd/TizenTube
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-wgt_MAC.sh
40 lines (33 loc) · 1.33 KB
/
install-wgt_MAC.sh
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
#!/bin/bash
# To run this script on your Mac, run in a terminal "chmod +x install-wgt_MAC.sh" and then "./install-wgt_MAC.sh"
# Make sure that the root directory is right, it's the default one here.
tizen_dir="${HOME}/tizen-studio"
# URL to download wgt files
url="https://github.com/ThowZzy/TizenTube-Legacy/releases/latest/download"
echo ""
echo "Type here the IP of your TV (make sure you did step 2 before) : "
read userInput
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"
./tizen install -n "${tizen_dir}/Launcher.wgt"
./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 ""