Created
September 4, 2013 17:29
-
-
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.
This file contains 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
#!/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 $! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!