Monday, 16 November 2009

Make Cydia Repo Script

Not sure if this is useful or not, but if you find yourself following the tutorials and want a simple ne click script to create your Packages.bz2 and deb files feel free to use the following script. I have the following structure:
/repo/apps/
containing all the apps
/repo/uploads/deb 
Which has the packages and deb files.
cd apps
find . -name .DS_Store -exec rm {} \;
for app in $( ls -1 . )
do
    dpkg -b ${app}
    mv *.deb ../upload/deb
done

cd ../upload/
rm Packages.bz2
dpkg-scanpackages . /dev/null > Packages
bzip2 Packages

Script should be placed (in the above example) in:
/repo/

2 comments:

Joseph said...

You are amazing! I just started my own repo, but ive had my site: http://theappshare.com for a while. Doing everything manually is a PITA, and this really helps. Thanks!

Joseph said...
This comment has been removed by the author.