Jump to content

How to add a postinst & postrm file to a project?


Rook

28 posts in this topic

Recommended Posts

  • Replies 27
  • Created
  • Last Reply
Posted

In the same directory your control file is either Project folder or DEBIAN

So you just create the new postinst file and it'll auto be included in the project? No need to include it in makefile or something?

 

@@castix

Posted

@@DiDA here I ripped it from I one of my PM's to Javi

 

 

 

To encode and clean up the data of your project

• I recommend creatng a folder 'deb' in /var/mobile

• Inside you create another individual folder com.yourname.name so com.javitech.bravefrontier1.2.4.1 for you

• You may already know after compiling your project there is a new folder '__'. Copy both the DEBIAN and LIBRARY folder and paste them in your com.yourname.name folder

• Open the control file in DEBIAN and you can give your Tweak a final polish like removing the annoying number after the version. You can also add additional info like Homepage: http://iOSGods.com and in the Cydia package information will be a new pane for your website

• Open MobileTerminal and type in

su
alpine
cd /var/mobile/deb
dpkg-deb -Z lzma -b com.yourname.name          // lzma is a higher compression level therefore it will be unable to unarchieve
• A new .deb is in /var/mobile/deb now

 

 

 

Add a custom installation text

• Go into the DEBIAN folder again

• Create a new file 'postinst' // No extension just a regular file

• Open the file and type

#!/bin/sh
echo      
echo "Something cool castix made"
echo
echo "U mad bro?"
echo
echo "Visit iOSGods for cookies"
echo
exit 0
Only 'echo' creates a space between the text. You can add as many lines as you want

 

Again you can compile with the encoding method above

Archived

This topic is now archived and is closed to further replies.

×
  • 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