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.
source share