+ Reply
Results 1 to 1 of 1

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: How to make a deb

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Overview: You want release mods, hacks, etc really easy. Well packaging the hack makes it installing the hack very easy for the end-user without messing up permissions or other problems.
...
  1. #1
    iPhone? More like MyPhone ICydiaify's Avatar
    Join Date
    Apr 2011
    Posts
    183
    Thanks
    2
    Thanked 10 Times in 9 Posts

    Post How to make a deb
    Overview:

    You want release mods, hacks, etc really easy. Well packaging the hack makes it installing the hack very easy for the end-user without messing up permissions or other problems.


    Tools:

    iPhone or iPod touch

    SSH (OpenSSH installed on device)

    WinSCP (4.2.5 or higher)



    1. Setup

    First of all you would want to make a folder on your desktop. For this tutorial "X" is being used as a folder.


    2. Control File

    You will need a control file so you are able to package the DEB and for it to be viewable in Cydia/Rock.


    To do this make a folder called "DEBIAN" (ALL CAPS) inside the folder "X".

    Inside of the folder DEBIAN, make a file called "control" all lowercase and without an extension.


    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


    Package: com.yourcompany.yourapp

    Name: YourAppNameHere

    Version: Number

    Architecture: iphoneos-arm

    Description: Small Desc. about your app.

    Homepage: Your Website

    Maintainer: YourName <YourEmail>

    Author: YourName

    Sponsor: YourWebSiteName <Website URL>

    Section: System



    Here is one of my own control file I use in Advanced Preferences



    Package: com.csdev.advpreferences2

    Name: Advanced Preferences 2

    Version: B3-2

    Architecture: iphoneos-arm

    Description: This hack will give you more settings and tweaks.

    Homepage: http://www.csdev.2x.nu

    Maintainer: CS Dev <[email protected]>

    Author: CS Dev

    Sponsor: CS Dev <http://www.csdev.2x.nu>

    Section: System




    3. File Structure

    Inside your "X" folder, it's going to be like the iPhone File System. Like if you want to add a file to the root partition, just put the file in "X".


    A. Application Structure

    To install apps with DEBs, inside of "X", make a folder called "Applications". Then inside of Applications, make your app folder (EX: Cydia.app)


    B. Theme Structure

    To install themes wth DEBs, inside of "X", make a folder called "Library". Then inside of Libary, make another folder called "Themes" . After that inside of themes make your theme folder (EX: Cydia.theme)


    Add your files using the structure above


    4. WinSCP and SSH.


    Open up WinSCP and connect to your Device. Navigate on your Device to

    /var/root



    Copy the X Folder to your device. File Structure should be below

    /var/root/X



    Inside the X Folder change the permissions of the DEBIAN folder and its files to755

    Navigate to var/root/ and open up the terminal im WinSCP. Do this by clicking the black box in one of the toolbars.


    5. Terminal


    Inside of Terminal type the following command in the "Enter Command" Box.

    dpkg -b X




    It will pop-up some error and this is okay.


    The DEB file will be located in var/root/

    var/root/X.deb

  2. The Following 2 Users Say Thank You to ICydiaify For This Useful Post:

    Jahooba (05-03-2011), sundae99 (04-25-2011)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts