1. itouchr's Avatar
    Hey everyone! I know that a lot of people want to make their own Cydia repo and don't understand Saurik's instructions. That's why I'm telling you how to do this. When I say something, you should understand it. Let's get started!

    What You Need:

    -Mac or Virtual Machine with Debian installed
    -Fink (If your on a Mac) Get it here
    -Internet
    -Text Editor

    OK here we go!

    If the images are too small, click on them to make them big.

    1. Make a folder on the desktop called "MyProgram" without quotes.


    2. Make 2 folders inside MyProgram called "Applications" and "DEBIAN" without quotes. If you have an app, you make an "Applications" folder. If you have a wallpaper, you would instead of an "Applications" folder, you'd put the directory of where the wallpaper would go.

    EX: For wallpaper: MyProgram > Library > Wallpapers > Wallpaper goes here

    For app: MyProgram > Applications > App goes here


    3. Put your .app file into the "Applications" folder. Remember, if your something like a wallpaper, put it in MyProgram > Library >Wallpapers > Wallpaper goes here


    4. Now go into Spotlight, the magnifying glass in the top right corner of the screen and search "textedit" without quotes.


    5. Now copy and paste the code below into TextEdit.

    Website: http://www.yoursite.com/home.html
    Maintainer: You <your email>
    Name: Name of package
    Package: Bundle identifier
    Section: Section it could be found in
    Version: version of package
    Architecture: iphoneos-arm
    Description: Description of package
    Sponsor: You <http://yoursite.com>

    6. After you edit, it should look somewhat like this:


    7. Hit "Save As..." and save it as "control" without quotes and uncheck "If no extension is provided, use .txt"


    8. Now put the control file in MyProgram > DEBIAN


    9. Now Launch Terminal by going to Spotlight and search Terminal. When you open it, it should look like this:


    10. In Terminal, type "cd /Users/your username/Desktop and hit enter shown here:


    11. OK, copy and paste this code into Terminal: dpkg-deb -b MyProgram and hit enter.


    As you can see, it says there are warnings. That's OK! When you typed that command, it made a new file called MyProgram.deb It's that easy to make a DEB file!


    12. Now let's make our repo's info. Copy and paste the code below.

    Origin: Name of your repo
    Label: Header when the user taps your repo
    Suite: stable
    Version: 1.0
    Codename: stable
    Architectures: darwin-arm
    Components: main
    Description: Description of your repo

    13. When you're done editing it, it should look like this:


    It does say control at the top because I just deleted the text from the control file. DON'T DO THAT!

    14. Click File > Save As... and save it as "Release" without quotes. And make sure there is not extension!


    15. Make a new folder on the Desktop and name it "cydiarepo" without quotes.


    16. Inside "cydiarepo" make a folder called "debs" without quotes.


    17. Now go back into Terminal and type this command: dpkg-scanpackages -m . /dev/null -->Packages

    Then hit enter.


    Notice it created a "Packages" file on your Desktop.


    18. Now go back to Terminal and type this command: gzip -f Packages

    Then hit enter.


    Notice that it gzipped the Packages file and made a new file called Packages.gz


    19. Double click Packages.gz and it will extract the Packages file. When it's done, dragthe Release file, Packages, and Packages.gz into the cydiarepo folder.


    20. Now drag the MyProgram.deb file into the "debs" folder in cydiarepo.


    Rename the DEB file to whatever you want. EX: Snapture.deb

    21. Go to back one, and highlight everything. Then, right click and click Compress 4 Items.


    Then click Compress 4 items...


    It will make a file called "Archive.zip"


    22. Make a folder on your site that will be the main directory of where we upload the files. Then upload the zip to that folder. I named my folder cydiademo.


    Then extract...


    23. If it makes a folder called __MACOSX, just delete that. Also delete Archive.zip.


    24. Open up the Packages file and copy and paste the text below:

    MD5Sum: Put the MD5 hash here (to find this out, go to http://hashemall.com and select MD5)
    Maintainer: Who maintains the package <their email>
    Description: Description of package
    Package: Bundle Identifier
    Section: Section it shows up in
    Author: Who made the app <their email>
    Filename: directory where the deb can be found
    Version: Version of Package
    Architecture: iphoneos-arm
    Size: Unix Size (Right click on deb and click get info, and view size on disk. input the numbers ONLY, not the commas.)
    Homepage: URL for More Info
    Name: Name of package

    When done, it should look like this:


    25. Now copy and paste what you put in the Packages file into the Packages file on your desktop. Then save it.


    26. Each time you modify the Packages file, you have to make a new .gz file. Type the command in Terminal: gzip -f Packages


    27. In your repo folder on your site, delete Packages.gz and upload the new one. I'm not going to show a pic this time.

    I think that's it! Oh yah! One more thing! Whenever you upload a new DEB, you have to change the Packages and Packages.gz files so they're up to date. Each time you cahne the Packages file, you skip a line, then copy the info you posted in there already.

    It'll look like this:


    So how was this tutorial? Comment.

    -Alec

    My Sites:
    Index of /
    YouTube - RoboticShowOff's Channel
    2008-11-07 05:39 AM
  2. xcsic's Avatar
    Thanks for this guide, and i know this is a stupid question, but how would i go about installing debian on a macbook running os x 10.5.5.? thanks!
    2008-11-16 01:28 AM
  3. Trent J.'s Avatar
    Great tutorial.. Very easy to follow. Thanks..


    check your pm's
    Proud MMi Retired Moderator.
    2008-11-16 02:17 AM
  4. itouchr's Avatar
    the actual os? download virtualbox and download the debian iso.

    It's really easy to do.
    Last edited by itouchr; 2008-11-16 at 03:45 AM. Reason: Automerged Doublepost
    2008-11-16 03:45 AM
  5. kanaya's Avatar
    i got everything done, but still no show on cydia, it says i have to do some source.list but have no idea how to
    2008-11-19 09:26 PM
  6. itouchr's Avatar
    i got everything done, but still no show on cydia, it says i have to do some source.list but have no idea how to
    Let me try something. Whats your repo URL?
    2008-11-19 11:52 PM
  7. kanaya's Avatar
    ok this is my repo, i did everything and still nothing

    http://laxtrema.com/cydiarepo/
    Last edited by kanaya; 2008-11-24 at 04:00 AM.
    2008-11-20 01:36 AM
  8. kanaya's Avatar
    anybody?
    2008-11-24 04:00 AM
  9. marcolz's Avatar
    If you are on debian anyway, I can recommend apt-ftparchive, from the 'apt-utils' package, which automates some of the steps above, including the checksumming.

    See the bottom of CoreDev Cydia repository
    2008-11-25 11:03 AM
  10. kennopix's Avatar
    Hi

    i have problem for create control, terminal say this error: /sw/bin/dpkg-deb: parse error, in file `MyProgram/DEBIAN/control' near line 4: duplicate value for user-defined field

    help me pleases thanks
    Last edited by kennopix; 2008-11-26 at 02:50 PM.
    2008-11-26 02:47 PM
  11. itouchr's Avatar
    ok this is my repo, i did everything and still nothing

    Index of /cydiarepo
    hmm... well why are you putting files and all in different folders?

    Hi

    i have problem for create control, terminal say this error: /sw/bin/dpkg-deb: parse error, in file `MyProgram/DEBIAN/control' near line 4: duplicate value for user-defined field

    help me pleases thanks

    same here sometimes. try uninstalling fink. then reinstall.
    Last edited by itouchr; 2008-11-29 at 08:35 AM. Reason: Automerged Doublepost
    2008-11-29 08:35 AM
  12. kennopix's Avatar
    The repo ready!

    but I get this error when I go to install package:

    source error
    undetermined error

    2008-12-01 02:13 PM
  13. youngbrammer's Avatar
    How 'bout for Windows?
    2008-12-05 12:54 AM
  14. xcsic's Avatar
    Okay, I feel pretty stupid.. but when I'm trying to save the control file, there is no "If no extension is provided, use .txt" check box. I can only save with an extension. I'm running OS X 10.5.5. How can I make this show up?

    2008-12-06 07:32 PM
  15. Kyle Matthews's Avatar
    Go up to the Format menu and choose "Make Plain Text".

    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2008-12-06 09:55 PM
  16. xcsic's Avatar
    Okay. Now I'm at the step "Extract" after you upload the .zip to your server, which I have done. What file am I extracting, to where, and with what? I'm using Transmit to upload the files.
    Last edited by xcsic; 2008-12-07 at 03:04 PM. Reason: Automerged Doublepost
    2008-12-07 03:04 PM
  17. xcsic's Avatar
    Can anybody give me an answer on this? I'd really like to get my repo up ASAP.
    2008-12-10 11:40 PM
  18. itouchr's Avatar
    Can anybody give me an answer on this? I'd really like to get my repo up ASAP.
    well, wait do you mean the deb? what zip?
    2008-12-12 02:04 AM
  19. xcsic's Avatar
    The Archive.zip. I have it up on my server, but I'm not sure what to do with the steps "Then extract..." and "23. If it makes a folder called __MACOSX, just delete that. Also delete Archive.zip."
    2008-12-12 11:38 PM
  20. itouchr's Avatar
    The Archive.zip. I have it up on my server, but I'm not sure what to do with the steps "Then extract..." and "23. If it makes a folder called __MACOSX, just delete that. Also delete Archive.zip."
    if it doesnt make a __MACOSX folder, skip it.
    2008-12-16 05:49 AM
128 123 ...
LINK TO POST COPIED TO CLIPBOARD