Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
leosantosw
Reel Rookie

Automated Deployment for Roku: Is there a better way?

Jump to solution

Hi everyone!
I’m new to Roku development and don’t have much experience with the language. I created a script to automate the deployment of my Roku app. It zips the app, sends it to the Roku device, and triggers the installation process. Here’s the script:

#!/bin/bash

WORKSPACE="app"
IP="YOUR ROKU IP"
PASSWORD="YOUR PASSWORD"
CURRENT_DIR=$(pwd)
ZIP_FILE="$CURRENT_DIR/app.zip"

if [ ! -d $WORKSPACE ]; then
  echo "Error: '$WORKSPACE' directory not found."
  exit 1
fi

cd $WORKSPACE && zip -r "$ZIP_FILE" . && cd "$CURRENT_DIR"

if [ ! -f "$ZIP_FILE" ]; then
  echo "Error: app.zip not created."
  exit 1
fi

response=$(curl -s -w "%{http_code}" -o /dev/null --digest -u "rokudev:$PASSWORD" \
  -F "mysubmit=Install" \
  -F "archive=@$ZIP_FILE" \
  "http://$IP/plugin_install")

if [ "$response" -eq 200 ]; then
  echo "Installation successful!"
  telnet "$IP" 8085
else
  echo "Error: response code $response"
fi

Is there any better or more automated way to deploy Roku apps directly, especially for development purposes? Since I’m new to this, I’d appreciate any suggestions or guidance! Thanks a lot!

0 Kudos
1 Solution

Accepted Solutions
Chris-DP
Binge Watcher

Re: Automated Deployment for Roku: Is there a better way?

Jump to solution

Hey! I would highly recommend looking at the BrightScript Language Extension for VS Code. It is by far the most feature rich debugger and has full support for sideload and debugging your code built in.

if you are looking for a tool for just sideloading to the device or making signed packages you should look at the roku-deploy node module. This is the code module used by the extension and have been thoroughly tested and used by the community at this point.  

View solution in original post

0 Kudos
1 REPLY 1
Chris-DP
Binge Watcher

Re: Automated Deployment for Roku: Is there a better way?

Jump to solution

Hey! I would highly recommend looking at the BrightScript Language Extension for VS Code. It is by far the most feature rich debugger and has full support for sideload and debugging your code built in.

if you are looking for a tool for just sideloading to the device or making signed packages you should look at the roku-deploy node module. This is the code module used by the extension and have been thoroughly tested and used by the community at this point.  

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.