Creating a Cydia repository & adding your first package

Page 2 of 3




Step 6.

Launch DS_Store_Cleaner. Drag your MyProgram folder into the program.

iPhone



A message will appear confirming the deletion of the hidden .DS_Store files. Anytime you change the contents of your folders, these files are added. It is critical they be removed before generating the .deb file.

iPhone




Step 7.

Launch the Terminal. Enter the following:

cd /Users/your user name/Desktop

Press enter.

Enter the following:

dpkg-deb -b MyProgram

Press enter. There will be three warning messages about the user-defined fields website, name and sponsor. This is normal.

iPhone



You will also see a file called MyProgram.deb was created, and placed on your desktop.

iPhone




Step 8.

Create a new file with TextEdit. Paste the following text into your file.

Origin: Name of your repository.
Label: What the user will see to go to your repository. This can be the same as Origin.
Suite: stable
Version: 1.0
Codename: stable
Architectures: darwin-arm
Components: main
Description: Description of your repository.

My text looked like this after I edited it.

iPhone



Click File, Save As... Name the file Release and select Unicode (UTF-8) as the encoding method.

iPhone



The Release file will be saved to the desktop.

iPhone





Step 9.

Create a folder called cydiarepo on your desktop.

iPhone



Create a folder inside cydiarepo called debs.

iPhone




Step 10.

Enter the following into the Terminal:

dpkg-scanpackages -m . /dev/null -->Packages

Press enter.

iPhone



A file called Packages will be saved to your desktop.

iPhone



Enter the following:

gzip -f Packages

Press enter.

iPhone



A file called Packages.gz will be created on the desktop, and the Packages file will disappear.

iPhone



Double click the Packages.gz file to extract the Packages file. Now place the Packages, Packages.gz, and Release files into the cydiarepo folder.

iPhone




Step 11.

Place the MyProgram.deb file into the debs folder which is inside of the cydiarepo folder.

iPhone



Rename the .deb file to whatever you want. The program I'm using here is called Terminal.

iPhone




Step 12.

Download the MD5 (version 2.6) program from Eternal Storms software here. You should now have the file shown below. Double click it to retrieve the .dmg.

iPhone       iPhone



Double click the file to install it. Then drag the application icon to your Applications folder.

iPhone



Launch the MD5 program and click the Single Files button. Drag your .deb file into the Choose file field of the program. The path to this file will be automatically entered for you.

iPhone



Click the Calculate checksum button. Keep this program open, we will be coming back to copy the checksum value into the Packages file.

iPhone







Click here to go to page 3.




Return to top of page