Skip to content

Instantly share code, notes, and snippets.

@Fusion86
Created February 4, 2017 17:00
Show Gist options
  • Save Fusion86/fcb81818da3ee67f5d1fc719dac5346e to your computer and use it in GitHub Desktop.
Save Fusion86/fcb81818da3ee67f5d1fc719dac5346e to your computer and use it in GitHub Desktop.
Make Cydia .deb from .ipa

Make Cydia .deb from .ipa

Setup the folder structure

+- MyProgram
   +- Applications
   |  +- MyProgram.app
   |     +- Info.plist
   |     +- MyProgram
   |     +- icon.png
   +- DEBIAN
   |  +- control
   +- System
      +- Library
         +- LaunchDaemons
            +- com.saurik.MyProgram.plist

Create control file

Package: com.saurik.myprogram
Name: MyProgram
Version: 1.0.4-1
Architecture: iphoneos-arm
Description: an example of using APT
 Every day people use Cydia, but with the
 instructions embodied in this package,
 people can publish for it as well.
Homepage: http://www.saurik.com/id/7
Depiction: http://www.saurik.com/id/7
Maintainer: Your Name <[email protected]>
Author: Jay Freeman (saurik) <[email protected]>
Sponsor: Microsoft <http://www.microsoft.com/>
Section: Games

If you are on a mac

Run the below command to not copy ._* files

export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE

Codesign

codesign -fs "iPhone Developer" MyProgram/Applications/MyProgram.app

or (you might need sudo for this)

ldid -S MyProgram/Applications/MyProgram.app/MyProgram

Make .deb

dpkg-deb -b -Zgzip MyProgram/

We use -Zgzip to make sure it uses gzip instead of xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment