Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnTerr
Level 9

Re: How to create a pkg without using the Roku?

"Technologx" wrote:
TCL TV
sorry, i guess i should have asked: Windows or Mac?

"Technologx" wrote:
I'm have errors with a couple of my XML files and I have no idea how to fix them.
that's a whole new  subject.
0 Kudos
Technologx
Level 7

Re: How to create a pkg without using the Roku?

I'm using a Mac
Technologx - Where we make things happen!
https://technologx.com
0 Kudos
EnTerr
Level 9

Re: How to create a pkg without using the Roku?

This should do it:

  1. create text file named "run" in the project top directory with this:
    #!/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 deadly bug
    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 (stupid Roku!)
    cd -- "$(dirname "$0")"
    touch timestamp
    zip -FS -9 -r bundle * -x run.sh extras

    # deploy
    curl -f -sS --user rokudev:nuisance --anyauth -F "mysubmit=Install" -F "archive=@bundle.zip" -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))'


  2. Put your correct IP and rokudev password there (or use environment vars instead, whatever)

  3. "chmod +x run" from Terminal, so it's executable

  4. Now double-clicking on this in Finder or running from Terminal will create bundle.zip and upload it to the player.


PS. renamed from "run.sh to "run" and added `cd -- "$(dirname "$0")"` so it will work correct with double-click from Finder. See http://stackoverflow.com/questions/5125907/how-to-run-a-shell-script-in-os-x-by-double-clicking/2971... for the why.
PPS. re-using same file for multiple projects as symlink or alias won't do since Finder resolves to the original location. Use hard link instead.
0 Kudos
Technologx
Level 7

Re: How to create a pkg without using the Roku?

Thank you I'm completely new to this we just recently got a TCL Roku TV and I figured I'd try to make a news feed channel for my forum.
Technologx - Where we make things happen!
https://technologx.com
0 Kudos
Technologx
Level 7

Re: How to create a pkg without using the Roku?

"EnTerr" wrote:
This should do it - create "run.sh" file in the project top directory and use that. Season to taste:
#!/bin/bash
ROKU_DEV_TARGET=192.168.1.28   # Roku 3

# wake up/interrupt Roku - workaround for fw5.4 deadly bug
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 (stupid Roku!)
touch timestamp
zip -FS -9 -r bundle * -x run.sh extras

# deploy
curl -f -sS --user rokudev:nuisance --anyauth -F "mysubmit=Install" -F "archive=@bundle.zip" -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))'


How exactly do I use this?
Technologx - Where we make things happen!
https://technologx.com
0 Kudos
EnTerr
Level 9

Re: How to create a pkg without using the Roku?

"Technologx" wrote:
How exactly do I use this?

Can you drop by the chat room, it might be easier to help you interactively?
https://forums.roku.com/viewtopic.php?f=34&t=96769
0 Kudos
Technologx
Level 7

Re: How to create a pkg without using the Roku?

I can't talk there I need 20 rep points
Technologx - Where we make things happen!
https://technologx.com
0 Kudos
EnTerr
Level 9

Re: How to create a pkg without using the Roku?

"Technologx" wrote:
I can't talk there I need 20 rep points

Try again, now you can. 
0 Kudos
Technologx
Level 7

Re: How to create a pkg without using the Roku?

It's the same man
Technologx - Where we make things happen!
https://technologx.com
0 Kudos
EnTerr
Level 9

Re: How to create a pkg without using the Roku?

"Technologx" wrote:
It's the same man

<scratches head> i guess it takes them a while to update because of caching. Anyway here is what i wrote 
http://chat.stackoverflow.com/rooms/125 ... pt-for-mac
I'll tweak a little bit the above script to account for http://stackoverflow.com/questions/5125907/how-to-run-a-shell-script-in-os-x-by-double-clicking/29710607#29710607 - in other words what a normal person would expect, to run it by double-clicking on the file. There is a caveat with the current directory and i want to see how it fares with symlinks vs hard ones 
0 Kudos