Kodi Community Forum
[atv2] automate nightly build install - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: [atv2] automate nightly build install (/showthread.php?tid=110982)



[atv2] automate nightly build install - sezb51 - 2011-09-25

Hello,

here an attempt to facilitate latest night build install....

Code:
AppleTV:~ root# cat upgrade.sh

mirror_url=http://mirrors.xbmc.org/nightlies/darwin/atv2

null=$(/usr/bin/wget $mirror_url 2>&1)
$(grep master index.html | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' > index.txt)

namefile=$(head -1 index.txt | cut -f2 -d\ )

while true; do
    read -p "Do you want to upgrade to '$namefile' ?(y/n)" yn
    case $yn in
        [Yy]* ) wget $mirror_url/$namefile ; dpkg -i $namefile ; rm $namefile ; break;;
        [Nn]* ) break ;;
        * ) echo "Please answer yes or no.";;
    esac
done

$(rm index.txt ; rm index.html)

AppleTV:~ root#

It download the index page from mirror web,
then strip the html code and take the first line.
If the proposed selection is accepted the it start the download and finally install the build.

A.

Refence:
http://wiki.xbmc.org/index.php?title=How-to:Install_XBMC_on_Apple_TV_2


- durniplot - 2011-09-25

Here's what I'm using:
http://forum.xbmc.org/showthread.php?tid=108142

Best regards,
Durniplot


- ecolombres - 2011-09-26

durniplot Wrote:Here's what I'm using:
http://forum.xbmc.org/showthread.php?tid=108142

Best regards,
Durniplot

Me too


- Uccio - 2011-10-03

Hello,

There is a new "nightly build" out! (2 october 2011).

But this "trick" continues always to install the buid "xbmc-20110930-2138fb0-master-atv2.deb" (second-last line instead last line). Why? Sad

P.S. Sorry for my english.


- jd2157 - 2011-10-03

A wise man once said:

http://forum.xbmc.org/showpost.php?p=869285&postcount=14


- Uccio - 2011-10-03

jd2157 Wrote:A wise man once said:

http://forum.xbmc.org/showpost.php?p=869285&postcount=14

My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "


Why? :confused2: Help!


- Memphiz - 2011-10-04

Uccio Wrote:My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "


Why? :confused2: Help!

no comment

Code:
wget http://mirrors.xbmc.org/nightlies/darwin/atv2/xbmc-20111003-fc543cb-master-atv2.deb



- jd2157 - 2011-10-04

Uccio Wrote:My problem is that doesn't work manually..

When I try to write: "wget xbmc-20111003-fc543cb-master-atv2.deb" (for example)

I get this message:

" wget xbmc-20111003-fc543cb-master-atv2.deb
--2011-10-03 20:55:50-- http://xbmc-20111003-fc543cb-master-atv2.deb/
Resolving xbmc-20111003-fc543cb-master-atv2.deb... failed: nodename nor servname provided, or not known. "

Take a close look at the instructions and screen shot of the nightly install here:

http://wiki.xbmc.org/index.php?title=Install_XBMC_on_ATV2#Installing_the_latest_nightly_build

It should be fairly easy to see what you're doing wrong, i.e. your wget command isn't right.