Jump to content

How to add a postinst script to your hack/deb


117 posts in this topic

Recommended Posts

Posted

This was extremely confusing for me at first but now that I've got it down its very simple. This is if you want to add lipoARM64 and some credits when the user installs your hack.

 

Requirements: iFile, MobileTerminal

 

Hidden Content

    1. Compile your hack. cd to your hack folder and type "make package".

     

    2. Go into your hack folder, and find the folder called "_". It looks like this if you are unsure:

     

    xPFq6iU.jpg

     

     

    3. Go into that folder and you will be presented with two folders inside: DEBIAN and Library.

     

    4. Copy both those folders.

     

    5. Go out of your hack folder and create a new folder called "deb" with iFile.

     

    6. Inside that folder named deb, make another with the name of your actual hack deb. For example: if I were to add a postinst script to my BTD Battles hack, I would name the folder "com.shmoo.battles".

     

    7. Inside the folder with the name of your hack deb, paste the DEBIAN and Library folders that you copied earlier into them.

     

    8. Take your postinst script and copy it into the DEBIAN folder.

     

    So the layout of the folder called deb should look like this:

     

    deb

    com.whoyouare.hackname

    DEBIAN

    control

    postinst

    Library

    files you don't need to worry about

     

    9. Go into MobileTerminal and cd into the folder called "deb".

     

    10. Now run this command:

    dpkg-deb -Z lzma -b com.whoyouare.whatyounamedyourhackfolder
    So for me it would be:

    dpkg-deb -Z lzma -b com.shmoo.battles
    11. After you ran that command, go back into the deb folder and there should be a new deb.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines