Jump to content

12 posts in this topic

Recommended Posts

Posted (edited)

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
Posted

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 )

Posted

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  ^_^

Posted

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

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