创建Cydia Logos Tweak,现在需要在安装后重新启动(操作方法) [英] Creating Cydia Logos Tweak, now required respring after installation (How to do)

查看:167
本文介绍了创建Cydia Logos Tweak,现在需要在安装后重新启动(操作方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Cydia创建一个徽标调整,并且确实完成了任务,但是现在安装后我需要重新启动SpringBoard". 谁能告诉我要实现此目的,就像Cydia商店中的许多应用一样,在安装后出现带有"Restart SpringBoard"而不是"Return to Cydia"文本的按钮.

I am creating a Logos Tweak for Cydia and i did complete my task, but now i required "Restart SpringBoard" after Installation. Can anybody tell me what i have to do to achieve this like many apps in Cydia store, In which after installation button appears with text "Restart SpringBoard" instead of "Return to Cydia".

推荐答案

如果您使用的是第一个(如果您清理干净,则必须重做这些步骤),

First one (if you do make clean then you will have to redo these steps),

mytweak/_/DEBIAN/中的DEBIAN文件夹中创建2个文件 称它们为preinstpostrm 在这些文件中粘贴:

Create 2 files in the DEBIAN folder which is located in mytweak/_/DEBIAN/ Call them preinst and postrm Inside those files paste:

declare -a cydia
cydia=($CYDIA)

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

exit

然后运行make package以创建带有重新加载按钮的新程序包

Then run make package to create the new package that has the respring button on it

第二种方法更简单,可以在没有theos的情况下使用, 在DEBIAN文件夹中的control文件中,您应该知道它在哪里. 添加行:

The second way is much more simpler and can be used without theos, In the control file which is located in the DEBIAN folder, you should know where this is. Add the line:

Depends: mobilesubstrate

尽管我确实知道这一点,但可以 Nate 来获得此答案.

Credit to Nate for this answer, although I did know this.

希望这会有所帮助.

这篇关于创建Cydia Logos Tweak,现在需要在安装后重新启动(操作方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆