How to Make Your Own Repo in Windows (Part 1): Building Deb File
Most of iPhone user now using jailbroken iDevice as it gives us the freedom of to modify and tweak on our iDevice. But aside from adding repo and sources in Cydia, many maybe don’t know yet how the repo is made. Well, wait no more as now I will show you how to do it with this step by step guide to creating your own repo.
For your information, most of the repo in Cydia are created on Mac OS or Linux. But the one that I’m going to show now will be made using Windows operating system. But before we start, here is a list of things that you need:
- An iPhone (Jailbreak and installed with SSH).
Here are the steps you must follow:
First of all you would want to make a folder on your desktop. For this tutorial “Apps” is being used as a folder. The name that you used on the folder cannot contain any symbol or spaces. This is the folder where you will put your apps or anything that you want to install on your iPhone. Inside the folder, you have to create two more folders; one MUST be named “DEBIAN” (I will explain this later). The other folder contains the folder that you want to install in your device.
For instance, if you want the folder to be placed inside the Library folder in your device, you must put the folder name Library (exactly the same as the one in your device). Notice in the picture that the location of the folders in the desktop is the same as the one in the device.
Now as for the “DEBIAN” folder. This folder acts as an identity for your app so that it can be easily uninstalled later. In other languages it is the same as registry in Windows. Inside this folder contains a file that you create that must be named “control” without an extension. For example, instead of making the file like control.cfg, just create a file called control without the “.cfg”.
Here is a brief description of the fields in a control file.
You need to add the below inside your control file except with your information. Make sure you add an extra space at the bottom of the control file
Description: Small Description about your app.
Homepage: Your Website
Maintainer: YourName <YourEmail>
Sponsor: YourWebSiteName <Website URL>
Section: System/Themes/Ringtone ß According on what you want to install
Open up WinSCP and connect to your Device. Navigate on your Device to “/var/root“ folder. Copy the App Folder to your device. File Structure should be below ”/var/root/App”. Inside the X Folder change the permissions of the DEBIAN folder and its files to 755. Navigate to “var/root/” and open up the terminal in WinSCP. Do this by clicking the black box in one of the toolbars.
Inside of Terminal type the following command in the “Enter Command” Box.
dpkg -b App
It will pop-up some warning error and this is okay.
The DEB file will be located in var/root/
You can now cut that file “App.deb” to your windows
And there you have your own .deb file installer created in your Windows. Later I will give you the guide on how to upload it to internet, creating released file so it can be read by Cydia and make your own repo with it.
Stay tuned for Part 2 of this series!
Share This Article
Sign up Free Email NewsletterStay Updates with this Blog. Get Free email newsletter updates, Enter your Email here:
Don't forget to confirm your email subcription