Skip to content

Instantly share code, notes, and snippets.

@dudewheresmycode
Created July 19, 2024 18:02
Show Gist options
  • Save dudewheresmycode/762e9bc32b1031029829dd6d1b3098b2 to your computer and use it in GitHub Desktop.
Save dudewheresmycode/762e9bc32b1031029829dd6d1b3098b2 to your computer and use it in GitHub Desktop.
Bash script to sideload app to a Roku device in dev mode
#!/usr/bin/env bash
ROKU_IP="192.168.1.167"
ROKU_USER="rokudev"
ROKU_PASSWORD="XXXXXXX"
APP_FOLDER="app"
DEST_FOLDER="dist"
timestamp=$(date +%s)
zipfile="../$DEST_FOLDER/rokuapp-$timestamp.zip"
appfolder="./$APP_FOLDER"
echo "Creating $zipfile..."
cd $appfolder && zip -r $zipfile .
echo "Uploading $zipfile to Roku device at $ROKU_IP"
curl -o /dev/null -v \
--digest -u "$ROKU_USER:$ROKU_PASSWORD" \
-F "mysubmit=Install" \
-F "archive=@$zipfile" \
"http://$ROKU_IP/plugin_install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment