How to create a pkg without using the Roku?

Is there a way I can install my channel I created to my Roku or make a pkg file without using my Roku? Every time I try to upload my channel to my Roku I get a time out and it won’t go any further.

Alright I tried using a Makefile and app.mk I had to modify just to get it to work but I’m running into ERROR: Device returned HTTP 401 which I’m not sure why. Both files were found here: https://github.com/rokudev/hello-world

I think the answer is no (i.e. nothing supported) - you cant make a PACKAGED app (that you would be able to load to the app store, or run as anything that is not running as the dev channel). By putting everything for packaging on the target Roku does not need to make cross-compilers etc and also require you to sign the programs on their hardware (some level of security thru obscurity?).

For your issue -

  • Did you enable developer functionality on that Roku device?

  • Do you know the IP address for the Roku device?

  • Are you able to connect to the web interface on the roku device?

  • where do you set the IP address during make? (The git repo you point to does not have a makefile BTW)

Yes I enabled developer mode, yes I know the ip, yes the Roku can access the internet and what do you mean> where do you set the IP address during make?
? Also that git repo did have it the creator of hello-world removed it yesterday.

So I tried uploading my zip and installing again now I run into

Install Failure: No manifest. Invalid package.

“Technologx” wrote:
So I tried uploading my zip and installing again now I run into

Install Failure: No manifest. Invalid package.
Select the individual parts - the source folder, the images folder, manifest etc. and zip that, not the enclosing folder those things are in.

That’s what I tried, I’m trying again but it’s been loading for over an hr now.

“Technologx” wrote:
? Also that git repo did have it the creator of hello-world removed it yesterday.
It seems likely that said creator had exposed a makefile internal to the Co and after reading your thread, one of the Roku engineers that read the forum has slapped him into compliance :wink:

It’s easy to write your own build script, like in under dozen lines. What platform are you on, to boot?

TCL TV

I’m have errors with a couple of my XML files and I have no idea how to fix them.

“Technologx” wrote:
TCL TVsorry, 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.

I’m using a Mac

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/29710607#29710607 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.

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.

“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("(.*?)", sys.stdin.read(), re.DOTALL))'

How exactly do I use this?

“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

I can’t talk there I need 20 rep points

“Technologx” wrote:
I can’t talk there I need 20 rep points
Try again, now you can.

It’s the same man

“Technologx” wrote:
It’s the same man
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