Skip to content

Commit

Permalink
Update scripts to support new Roku web auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Apr 11, 2014
1 parent 8be5f41 commit f4b7bed
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -10,10 +10,11 @@ Setup

Put your Roku into [Dev Mode](http://sdkdocs.roku.com/display/RokuSDKv48/Developer+Guide#DeveloperGuide-71EnablingDevelopmentModeonyourbox).

Your Roku will tell you its IP address when you put it into Dev Mode. Set it in your `.bash_profile`:
Your Roku will tell you its IP address and have you set a developer password. Set these in your `.bash_profile`:

```
export ROKU_IP="10.0.1.2"
export ROKU_PASSWORD="mypassword"
```

Install the Python requirements:
Expand Down Expand Up @@ -79,7 +80,7 @@ Your password will be print out: **save it**. Exit the telnet session by typing
Add this new password to your `~/.bash_profile`:

```
export ROKU_PASSWORD="YOUR_PASSWORD_HERE"
export ROKU_GENKEY_PASSWORD="YOUR_PASSWORD_HERE"
```

Now to generate a shippable zip, simply run:
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -7,4 +7,4 @@ ZIP_NAME="roku-tinydesk.zip"
rm $ZIP_NAME;
zip $ZIP_NAME -r -9 . -i "source/*" -i "images/*" -i "manifest"

curl -s -S -F "mysubmit=Install" -F "archive=@$ZIP_NAME" -F "passwd=" http://$ROKU_IP/plugin_install
curl -s -S -F "mysubmit=Install" -F "archive=@$ZIP_NAME" -F "passwd=" --digest --user rokudev:$ROKU_PASSWORD http://$ROKU_IP/plugin_install
4 changes: 2 additions & 2 deletions ship.sh
Expand Up @@ -12,10 +12,10 @@ PKG_NAME="$APP_NAME-$VERSION"

time=" `date +%s`"

output="`curl -s -S -F "mysubmit=Package" -F "app_name=$PKG_NAME" -F "passwd=$ROKU_PASSWORD" -F "pkg_time=" http://$ROKU_IP/plugin_package`"
output="`curl -s -S -F "mysubmit=Package" -F "app_name=$PKG_NAME" -F "passwd=$ROKU_GENKEY_PASSWORD" -F "pkg_time=" --digest --user rokudev:$ROKU_PASSWORD http://$ROKU_IP/plugin_package`"

path="`echo $output | sed 's/.*href=\"\(pkgs\/\/.*\.pkg\)\".*/\1/'`"

curl --output "$PKG_NAME.zip" http://$ROKU_IP/$path
curl --output "$PKG_NAME.zip" --digest --user rokudev:$ROKU_PASSWORD http://$ROKU_IP/$path

echo "Created $PKG_NAME.zip"
2 changes: 1 addition & 1 deletion uninstall.sh
@@ -1,3 +1,3 @@
#!/bin/sh

curl -s -S -F "mysubmit=Delete" -F "archive=" -F "passwd=" http://$ROKU_IP/plugin_install
curl -s -S -F "mysubmit=Delete" -F "archive=" -F "passwd=" --digest --user rokudev:$ROKU_PASSWORD http://$ROKU_IP/plugin_install

0 comments on commit f4b7bed

Please sign in to comment.