Skip to content
Guest Big Announcement

how to convert bash script into cydia tweak

Featured Replies

Hello : )

 

I ask b4 about something and dida tell me to learn about bash language

 

http://iosgods.com/topic/12300-how-to-let-tweak-edit-plist-file

 

 

-------------------------

 

 

Now I finished from write a bash script

 

how can covert it into deb file

 

I made folader name com.test.test

 

inside that folder i make 2

 

DEBIAN

Applications

 

inside debian i put control file

Package: com.test.test
Name: test
Depends: mobilesubstrate
Architecture: iphoneos-arm
Description: test
Depiction: http://test.test/test
Homepage: http://www.test.com
Maintainer: test
Author: test
Section: Tweaks
Version: 1.0

and inside Applications I put test.sh

 

 

then i use this command

dpkg -b com.test.test

then I get  com.test.test.deb

 

after install from Ifile I get nothing

 

after install bash script don't run

 

 

so i want the way to make bash script run after packaging

 

 

Thank You : )

Updated by Yazeedot

  • Author

Did you make the files from scratch or with theos?

 

from scratch

 

I try make it with theos

 

i Choose from theos ( cydia Tweak)

 

after thac i past my bash script inside Tweak.xm

 

but give me error when compling ( make package install )

Thank you for help

 

Waiting other coder

Solution:

 

get everything in project directory and open terminal and type "make" (with no quotes)

Create a directory in your tweak's root directory and name it com.yourname.yourcompanyname

Then move the contents of the "-" folder to the com.yourname.yourcompanyname folder

Inside that directory, enter a directory called DEBIAN and add your postinst, preinst, prerm, and postrm scripts inside there. Also, you have to take your control file from your tweak's root directory and copy it into ./com.yourname.yourcompanyname/DEBIAN

 

To compile do this:

 

Open MobileTerminal and type the following lines of code

 

su

alpine //or your root password

cd /var/mobile/tweakdirectory

dpkg-deb -Z gzip -b com.yourname.yourcompanynameYour deb will stil be unarchiveable without using lzma 

 

Hope this helps fix any errors you may encounter  ^_^

  • Author

Solution:

 

get everything in project directory and open terminal and type "make" (with no quotes)

 

you mean i shoud make tweak first by THEOS ?

Create a directory in your tweak's root directory and name it com.yourname.yourcompanyname

Then move the contents of the "-" folder to the com.yourname.yourcompanyname folder

Inside that directory, enter a directory called DEBIAN and add your postinst, preinst, prerm, and postrm scripts inside there. Also, you have to take your control file from your tweak's root directory and copy it into ./com.yourname.yourcompanyname/DEBIAN

 

i don't under stand this point (postinst, preinst, prerm, and postrm ) i have one file example.sh

To compile do this:

 

Open MobileTerminal and type the following lines of code

 

su

alpine //or your root password

cd /var/mobile/tweakdirectory

dpkg-deb -Z gzip -b com.yourname.yourcompanynameYour deb will stil be unarchiveable without using lzma 

 

Hope this helps fix any errors you may encounter  ^_^

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.