Revision: 53445
Updated Code
at November 23, 2011 12:07 by tpryan
Updated Code
#! /bin/sh project="[phonegap projectnumber]"; username="[phonegap username]"; password="[phonegap password]"; appPath="[path to www folder]"; projectPath="[path where you want the apk file]"; APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; APIcall="$APIPATH/$project" creds="$username:$password"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $creds $APIcall | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $creds $APIcall | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $creds -X PUT -d 'data={"pull":"true"}' $APIcall); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $creds $APIcall | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $creds -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53444
Updated Code
at November 23, 2011 11:59 by tpryan
Updated Code
#! /bin/sh project="[phonegap projectnumber]"; username="[phonegap username]"; password="[phonegap password]"; appPath="[path to www folder]"; projectPath="[path where you want the apk file]"; APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' $APIPATH/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53443
Updated Code
at November 23, 2011 11:59 by tpryan
Updated Code
#! /bin/sh project="[phonegap projectnumber]"; username="[phonegap username]"; password="[phonegap password]"; appPath="[path to www folder]"; projectPath="[path where you want the apk file]; APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' $APIPATH/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53442
Updated Code
at November 23, 2011 11:58 by tpryan
Updated Code
#! /bin/sh project="[phonegap projectnumber]"; username="[phonegap username]"; password="[phonegap password]"; appPath="[path to www folder]; projectPath="[path where you want the apk file]; APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' $APIPATH/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53441
Updated Code
at November 23, 2011 11:57 by tpryan
Updated Code
#! /bin/sh project="49823"; username="[email protected]"; password="[PhoneGap Password]"; appPath="/Users/terryr/Sites/codeworks.dev"; projectPath="/Users/terryr/Documents/Projects/codeworks/" APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' $APIPATH/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53440
Updated Code
at November 23, 2011 11:56 by tpryan
Updated Code
#! /bin/sh project="49823"; username="[email protected]"; password="Wharton1"; appPath="/Users/terryr/Sites/codeworks.dev"; projectPath="/Users/terryr/Documents/Projects/codeworks/" APIPATH="https://build.phonegap.com/api/v1/apps"; FILEPATH="https://build.phonegap.com/apps/"; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' $APIPATH/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password $APIPATH/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk $FILEPATH/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Revision: 53439
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 23, 2011 11:37 by tpryan
Initial Code
#! /bin/sh project="[phonegap projectnumber]"; username="[phonegap username]"; password="[phonegap password]"; appPath="[path to www folder]; projectPath="[path where you want the apk file]; ##commit changes echo "Forcing changes to github"; cd $appPath null=$(git commit -m "auto commit as part of script"); null=$(git push origin master); echo "Done"; cd $projectPath ##Request Phonegap data echo "Requesting Project Data."; package=$(curl -s -u $username:$password https://build.phonegap.com/api/v1/apps/$project | grep -Po '"package":.*?[^\\],'); title=$(curl -s -u $username:$password https://build.phonegap.com/api/v1/apps/$project | grep -Po '"title":.*?[^\\],'); title=${title##*:}; title=$(echo $title|sed 's/,//g'); title=$(echo $title|sed 's/"//g'); package=${package##*:}; package=$(echo $package|sed 's/,//g'); package=$(echo $package|sed 's/"//g'); echo "Done. "; ##Request Rebuild echo "Requesting Rebuild."; request=$(curl -s -u $username:$password -X PUT -d 'data={"pull":"true"}' https://build.phonegap.com/api/v1/apps/$project); echo "Done. "; donecheck=""; echo "\nWaiting for rebuild to be done."; while [$donecheck -eq ""] do echo "."; sleep 10; donecheck=$(curl -s -u $username:$password https://build.phonegap.com/api/v1/apps/$project | grep -Po '"android":"complete"'); done echo "Done. Now downloading.\n"; ##Download File download=$(curl -L -s -u $username:$password -o $title-debug.apk https://build.phonegap.com/apps/$project/download/android); ##Install on Device ~/Downloads/android-sdk/platform-tools/adb uninstall $package ~/Downloads/android-sdk/platform-tools/adb install -r ./$title-debug.apk
Initial URL
Initial Description
Basically allows for a one click build through a repository driving PhoneGap Build project.
Initial Title
One click build for PhoneGap Build to Android
Initial Tags
android
Initial Language
Bash