Skip to content

Instantly share code, notes, and snippets.

Last active January 27, 2022 23:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dudewheresmycode/53d03cf5ceb97786553b5e640b401647 to your computer and use it in GitHub Desktop.
A bash script to automate deploying test apps to Roku devices on the local network.
BUILD_ID=$(date +"%s")
echo "Upload $ZIP_FILE to $ROKU_URL"
### Clean up
# rm dist/devbuild_*.zip
### Zip the file
(cd "$SRC_DIR" && zip -v -r -X "../$ZIP_FILE" . "*.DS_Store")
### Upload the zip to the Roku
curl --dump-header - -X POST \
--anyauth --user "$ROKU_DEV_USER:$ROKU_DEV_PW" \
-F "mysubmit=Replace" -F "archive=@$ZIP_FILE" \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment