Created
July 19, 2024 18:02
-
-
Save dudewheresmycode/762e9bc32b1031029829dd6d1b3098b2 to your computer and use it in GitHub Desktop.
Bash script to sideload app to a Roku device in dev mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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