Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ferkiori
Newbie

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
renojim
Community Streaming Expert

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

3 REPLIES 3
renojim
Community Streaming Expert

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
xbxalex
Reel Rookie

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

Osdaisy
Newbie

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

Jump to solution

Como conectar TV

 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.