Results 1 to 5 of 5

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


Thread: Needing help with postinst in deb package

  1. #1
    Default Needing help with postinst in deb package
    Hey,

    I'm making a new theme, and I need some help getting cydia to read my shell execution (post installation).

    Here is my postinst
    Code:
    #!/bin/bash
    
    if [ -f /Applications/Backgrounder.app/badge.png ]
    	then
    		cp -f /Applications/Backgrounder.app/badge.png /Applications/Backgrounder.app/badge.png.bak
    		cp -f "/Library/Themes/Simply Leopard.theme/badge.png" /Applications/Backgrounder.app/badge.png
    	fi
    
    exit 0
    It works 100% when i use dpkg -i, but when using it in Cydia, it doesn't seem to work.

    Help will be thanked!

    Anyone can help me with this?
    Last edited by mofolo; 03-12-2010 at 08:20 AM. Reason: Automerged Doublepost
    myRepoSpace.com - Easily create your own Cydia Repo.

  2. #2
    Green Apple NicholasLAranda's Avatar
    Join Date
    Sep 2011
    Location
    Hayward, California, United States
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    try dpkg -b NameOfFolder

  3. #3
    Livin the iPhone Life
    Join Date
    May 2008
    Posts
    8,023
    Thanks
    102
    Thanked 788 Times in 731 Posts

    I don't know if it is required, but many pre/post scripts start with declare -a cydia, cydia=($CYDIA), and a test for install, upgrade, remove, etc.

  4. #4
    Green Apple NicholasLAranda's Avatar
    Join Date
    Sep 2011
    Location
    Hayward, California, United States
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by NicholasLAranda View Post
    try dpkg -b NameOfFolder
    Idk what -i does, but it doesn't ever work for me, so use -b

  5. #5
    Livin the iPhone Life
    Join Date
    May 2008
    Posts
    8,023
    Thanks
    102
    Thanked 788 Times in 731 Posts

    dpkg -i NameOfPackage installs a deb package
    dpkg -b NameOfFolder builds a package (.deb) from NameOfFolder

    See dpkg --help or Google 'man dpkg'

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