I was wondering if it was possible to upload the zip file of a channel to a roku device using a terminal. It seems like it should be possible because there is a plugin available for Eclipse, but my goal is to not use Eclipse if possible. Any help would be appreciated.
Why, yes - build & deploy to Roku device is quick and easy, so even a makefile feels like overdoing it. Here is a script i was using for Mac OSX:
#!/bin/bash
#ROKU_DEV_TARGET=192.168.1.25 # Roku 2XS
ROKU_DEV_TARGET=192.168.1.28 # put YOUR roku IP here
# wake up/interrupt Roku - workaround for fw5.4 crash
curl -sS -d '' http://$ROKU_DEV_TARGET:8060/keypress/Home
curl -sS -d '' http://$ROKU_DEV_TARGET:8060/keypress/Home
# build. zip _must_ change for Roku to accept re-deploy (grr!)
cd -- "$(dirname "$0")"
touch timestamp
zip -FS -9 -r bundle * -x run extras
# deploy
curl -f -sS --user rokudev:nuisance --anyauth -F "mysubmit=Install" -F "[email protected]" -F "passwd=" http://$ROKU_DEV_TARGET/plugin_install \
| python -c 'import sys, re; print "\n".join(re.findall("<font color=\"red\">(.*?)</font>", sys.stdin.read(), re.DOTALL))'
I'd store it as a script file named run (marked as executable with chmod +x run; see https://stackoverflow.com/a/29710607/226086 for more, like "why not .sh", which was my initial inclination), so that can start it with double-click from Finder too. Or from TextWrangler with cmd-R, as was my case.
PS. i was not even copying the same run file to every project but linking to it - but i forgot if it was soft-link or hard-link that worked with a newer TextWrangler.
You can certainly use a terminal if your machine and the Roku are on the same wireless network.
ECHO $ROKU_DEV_TARGET and you should see your IP address there.make install and it should be able to install to your roku. NOTE: You may have to mess with the DISTREL, COMMONREL, SOURCEREL paths in the app.mk depending on the setup of your repo.
Helpful hint: in another terminal window, type telnet $ROKU_DEV_TARGET 8085 to see the console logging from the roku.
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With