Skip to content

Instantly share code, notes, and snippets.

@fuacici
Created December 28, 2013 05:49
Show Gist options
  • Select an option

  • Save fuacici/8156459 to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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