Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

how install channel by batch?-¿comoinstalar canal por batch?

Jump to solution

how can i install a channel by batch script?

¿como puedo instalar un canal via script batch?

no using ide atom or eclipse nethod

sin usar ide atom o ecplipse

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Level 19

Re: how install channel by batch?-¿comoinstalar canal por batch?

Jump to solution

I'm not sure what you're asking, but if you're trying to sideload you can use curl after zipping your code:

curl --user rokudev:<dev password> --anyauth -sS -F "mysubmit=Install" -F "archive=@<zip file>" -F "passwd=" http://<roku IP>:80/plugin_install

Replace <dev password>, <zip file>, and <roku IP> with appropriate values.

View solution in original post

3 Replies
Highlighted
Level 19

Re: how install channel by batch?-¿comoinstalar canal por batch?

Jump to solution

I'm not sure what you're asking, but if you're trying to sideload you can use curl after zipping your code:

curl --user rokudev:<dev password> --anyauth -sS -F "mysubmit=Install" -F "archive=@<zip file>" -F "passwd=" http://<roku IP>:80/plugin_install

Replace <dev password>, <zip file>, and <roku IP> with appropriate values.

View solution in original post

Highlighted
Level 8

Re: how install channel by batch?-¿comoinstalar canal por batch?

Jump to solution

/bin

-- build.sh

#!/usr/bin/env bash

if [ ! -d "./build" ]; then
mkdir "./build" && chmod 777 "./build"
fi

rm -f build/*.*

build_name=`date +"%Y-%m-%d-%H-%M-%S" | md5sum | cut -c1-6`

zip "./build/$build_name.zip" -r . -x "*.sh" "build/*" "bin/*" ".git/*" ".idea/*" ".gitignore" > /dev/null

curl \
-H 'Authorization: Digest username="rokudev", realm="rokudev", nonce="1571969966", uri="/plugin_install", response="c805d720fea3cb6ef4072f136dc66590", qop=auth, nc=00000022, cnonce="21807cd493e50b75"' \
-H "Accept: */*" \
-H "User-Agent: rokudev" \
-F "mysubmit=Install" \
-F "archive=@build/$build_name.zip" \
-X POST \
http://<ip>:80/plugin_install > /dev/null \
-vvv

 

TODO: Authorization my self. See browser header.

After (in console):

./bin/build

Highlighted
Level 7

Re: how install channel by batch?-¿comoinstalar canal por batch?

Jump to solution

Como conectar TV

 

0 Kudos