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
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.
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.
/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
Como conectar TV