Created
October 26, 2015 12:50
-
-
Save wolfposd/632aab187a5e9ce1c769 to your computer and use it in GitHub Desktop.
script used for bundling xcode compiled apps into debs for cydia
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 | |
# Script created by @wolfposd for XCode-Built-Apps | |
# ==== USAGE ==== | |
# to execute the script call in terminal: | |
# sh fallbackxcodebuiltappdeb.sh | |
# ==== SETTINGS ==== | |
buildtoolspath="ENTERPATH OF FOLDER" | |
gitpath="ENTER PATH TO YOUR GITHUB REPO ON DISK" | |
appname="ENTER NAME FOR THIS APP" | |
ldidparams="-S" | |
# ==== SETTINGS END ==== | |
echo "copying newest application" | |
cd $buildtoolspath | |
path=$(java FindPath $appname) | |
echo "removing old app from: "$appname"/Applications/"$appname".app" | |
rm -rf $appname"/Applications/"$appname".app" | |
echo "copying new app" | |
cp -r "$path" $appname"/Applications/" | |
echo "copying control file" | |
cp ./control $appname"/DEBIAN/control" | |
echo "signing application" | |
ldid $ldidparams $appname"/Applications/"$appname".app/"$appname | |
echo "removing .DS_Store" | |
find ./ -name ".DS_Store" | xargs rm | |
echo "packaging..." | |
dpkg-deb -Zgzip -b $appname | |
#cp $appname".deb" $gitpath | |
#cd gitpath | |
#sh import.sh | |
echo "DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment