Add roku upload scripts

This commit is contained in:
Nick Bisby 2019-02-22 21:14:56 -06:00
parent 25603b2947
commit c3e5647f94
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36
2 changed files with 32 additions and 0 deletions

15
dev_clear.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -z "$ROKU_DEV_PASSWORD" ]; then
echo "You need to set ROKU_DEV_PASSWORD:"
echo "export ROKU_DEV_PASSWORD=<your dev password>"
exit 1
fi
if [ -z "$ROKU_DEV_TARGET" ]; then
echo "You need to set ROKU_DEV_TARGET:"
echo "export ROKU_DEV_TARGET=<your roku ip>"
exit 1
fi
curl -f -sS --user rokudev:$ROKU_DEV_PASSWORD --anyauth -F "mysubmit=Delete" -F"archive=" http://$ROKU_DEV_TARGET/plugin_install \
| python -c 'import sys, re; print("\n".join(re.findall("<font color=\"red\">(.*?)</font>", sys.stdin.read(), re.DOTALL)))'

17
dev_upload.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ -z "$ROKU_DEV_PASSWORD" ]; then
echo "You need to set ROKU_DEV_PASSWORD:"
echo "export ROKU_DEV_PASSWORD=<your dev password>"
exit 1
fi
if [ -z "$ROKU_DEV_TARGET" ]; then
echo "You need to set ROKU_DEV_TARGET:"
echo "export ROKU_DEV_TARGET=<your roku ip>"
exit 1
fi
zip jellyfin-roku.zip -r ./*
curl -f -sS --user rokudev:$ROKU_DEV_PASSWORD --anyauth -F "mysubmit=Install" -F "archive=@jellyfin-roku.zip" -F "passwd=" http://$ROKU_DEV_TARGET/plugin_install \
| python -c 'import sys, re; print("\n".join(re.findall("<font color=\"red\">(.*?)</font>", sys.stdin.read(), re.DOTALL)))'