Created
December 28, 2013 05:49
-
-
Save fuacici/8156459 to your computer and use it in GitHub Desktop.
The shell is to build & upload iOS deb package automaticly.Once used for update my own cydia source.
This file contains hidden or 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
| #!/usr/bin/bash | |
| log=$(git log -1 --pretty=format:"%s") | |
| cur=$(pwd) | |
| target=ios_app_target | |
| workpath=theworkdir | |
| debdes=deb_path | |
| if [ -e "$workpath/$target.app" ]; then | |
| cp -rf $workpath/$target.app $debdes/Package/Applications/$target.app | |
| else | |
| echo "$workpath/$target.app" does not exist! | |
| exit 1 | |
| fi | |
| iosod build $debdes/Package/ Packages | |
| deb=$cur/Packages/com.joost.app_1_0_iphoneos-arm.deb | |
| if [ -e ]; then | |
| curl -F file=@"$deb" -F submit="Upload Package" 'http://www.xxx.com:8080/cydia/add_package.php' |grep "<p>Success</p>" | |
| cd $cur | |
| else | |
| echo $target.app does not exist! | |
| exit 1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment