Skip to content

Instantly share code, notes, and snippets.

@gaqzi
Created September 4, 2013 17:29
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaqzi/6440107 to your computer and use it in GitHub Desktop.
Save gaqzi/6440107 to your computer and use it in GitHub Desktop.
Takes a zip/tar.gz and uploads it to PhoneGap build while showing a progress bar.
#!/bin/bash
TOKEN=phonegap-build-access-token
APP_ID=phonegap-build-app-id
PROGRESS_FILE=/tmp/$TOKEN-progress
echo "" > $PROGRESS_FILE
tail -f $PROGRESS_FILE &
curl -X PUT -F file=@$1 https://build.phonegap.com/api/v1/apps/$APP_ID?auth_token=$TOKEN -o /tmp/$TOKEN-progress --progress-bar
kill $!
@mrbounce
Copy link

just what I was looking for - it worked perfectly first time & was easy to integrate with eclipse to make it part of my build process. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment