Creating Cydia Logos Tweak, now requires reinstallation after installation (how to do it)

I am creating Logos Tweak for Cydia and I have completed my task, but now I need a "Restart SpringBoard" after installation. Can someone tell me what I should do to achieve this, like many applications in the Cydia store, in which after installation a button appears that says "Restart SpringBoard" instead of "Return to Cydia".

+4
source share
1 answer

You can do this in two ways if you use THEOS ,

First (if you clean, you will have to repeat these steps)

Create 2 files in the mytweak/_/DEBIAN/ folder located in mytweak/_/DEBIAN/ Name them preinst and postrm Inside these file folders:

 declare -a cydia cydia=($CYDIA) if [[ $1 == install || $1 == upgrade ]]; then if [[ ${ CYDIA+@ } ]]; then eval "echo 'finish:restart' >&${cydia[0]}" fi fi exit 

Then run make package to create a new package with respring button

The second method is much simpler and can be used without theos. In the control file, which is located in the DEBIAN folder, you need to know where it is. Add a line:

Depends: mobilesubstrate

Confirm Nate for this answer, although I knew that.

Hope this helps.

+2
source

Source: https://habr.com/ru/post/1487220/


All Articles