Forum Discussion

mckayj's avatar
mckayj
Visitor
15 years ago

Simple BrightScript Editor and Compiling question

Hello there,

I am extremely new to brightscript development, and at the moment would just like to modify some of the Roku example programs with my own video links, and then re-compile to upload to my private roku channel.

1. I can't seem to figure out how to open the brightscript editor. I am on Mac OSX, but also have win 7. What is the easiest way to edit the sample .brs files?

2. Once I edit these files, how do I recompile them into the .zip which can be imported into my private channel.

Thanks so much for any help you can provide.

jay

6 Replies

  • "mckayj" wrote:
    1. I can't seem to figure out how to open the brightscript editor. I am on Mac OSX, but also have win 7. What is the easiest way to edit the sample .brs files?


    Any text editor will work. On OS X, I use TextWrangler from http://barebones.com/

    "mckayj" wrote:
    2. Once I edit these files, how do I recompile them into the .zip which can be imported into my private channel.


    BrightScript is an interpreted language. There is no compiling. You can use any zip utility to package your channel. Take a look at Section 7 of the Developer Guide and the Channel Packaging and Publishing document in the SDK. There are also sample makefiles in the SDK that are helpful.
  • Thanks for the help. Textwrangler worked great.

    However when I use OSX to compress the "simple video player" folder after I make the changes, and upload it using the development application installer, it says uploaded successfully, but does not show up on my channel list. When I upload the already compiled zip files that came in the SDK, they open fine. Any idea what may be causing this?

    Thanks so much

    Jay
  • renojim's avatar
    renojim
    Community Streaming Expert
    If there's a syntax error in your code, the channel will not show up. Telnet to port 8085 and you should see the error.

    -JT
  • Thanks JT

    Here is the error I received, but there is a /source folder in the zip.

    An error occurred while attempting to compile the application:

    ------->Script directory "/source" does not exist in zip archive.


    =================================================================
    An error occurred while attempting to compile the application:

    ------->Script directory "/source" does not exist in zip archive.
    ------ Running ------
    unexpected error getting five_photos.
    ------ Running ------
    showSpringboardScreen
    Button pressed: 2 0
  • Be sure you are zipping up the contents of the folder and not the folder itself. Your package structure should be myChannel.zip/source/, not myChannel.zip/myChannel/source/