如何在浏览Cydia repo时显示包/应用程序图标 [英] How to display package / app icon when browsing Cydia repo

查看:112
本文介绍了如何在浏览Cydia repo时显示包/应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功创建了一个Cydia repo,并且正在托管我正在开发的应用程序,并且它安装得很好,但由于某些原因,我在单击Cydia中的包时无法显示应用程序图标。截至目前,Cydia中的应用程序图标如下所示,

I have successfully created a Cydia repo, and am hosting an app that I am developing, and it installs fine, but for some reason I can't get the app icon to display when clicking the package in Cydia. As of right now the app icon in Cydia looks like the following,

应用程序图标显示应用程序安装在设备上的时间,我被告知需要安装应用程序才能在Cydia中显示图标,所以我在我的设备上安装了应用程序,但是图标仍未显示。我还将 Icon:file:/// 行添加到控制文件中。我似乎无法弄清楚为什么图标没有显示,截至目前,控制文件看起来像,

The app icon shows when the app is installed on the device, and I was told the app needs to be installed before the icon will show up in Cydia, so I installed the app on my device, but the icon is still not showing up. I also added the Icon: file:/// line to the control file. I can't seem to figure out why the icon isn't showing, as of right now, the control file looks like,

Package: com.chrisrjones.KegCop
Name: KegCop
Version: 0.1.3-103
Architecture: iphoneos-arm
Description: A frontend for the Kegbot.org hardware
Homepage: http://www.chrisrjones.com/kegcop/index.php
Depiction: http://www.chrisrjones.com/kegcop/index.php
Maintainer: Chris Jones <chris.r.jones.1983@gmail.com>
Author: Chris Jones <chris.r.jones.1983@gmail.com>
Sponsor:
Section: Applications
Depends: firmware(>= 5.1.1)
Icon: file:///Applications/KegCop.app/icon57x57_flat.png

正在生成的 Packages 文件看起来像以下是否有所作为,

The Packages file that is being generated looks like the following if it makes a difference,

Package: com.chrisrjones.KegCop
Version: 0.1.3-103
Architecture: iphoneos-arm
Maintainer: Chris Jones <chris.r.jones.1983@gmail.com>
Depends: firmware(>= 5.1.1)
Filename: .//debs/com.chrisrjones.kegcop_0.1.3-103_iphoneos-arm.deb
Size: 426586
MD5sum: 9c45579ecced6191a6f6497bb067c022
Section: Applications
Homepage: http://www.chrisrjones.com/kegcop/index.php
Description: A frontend for the Kegbot.org hardware


推荐答案

是的,文件有所不同。

包中包含图标字段 file
您需要编辑 dpkg-scanpackages 脚本并将Icon添加到数组末尾 fieldpri

To include Icon field in Packages file You need edit dpkg-scanpackages script and add "Icon" to the end of the array fieldpri.

这是我用于Cydia repo的 fieldpri

Here is my fieldpri used for Cydia repo.

my @fieldpri = ('Package','Source','Version','Priority','Section','Essential','Maintainer','Pre-Depends','Depends','Recommends','Suggests','Conflicts','Provides','Replaces','Enhances','Architecture','Filename','Size','Installed-Size','MD5sum','Description','Origin','Bugs','Name','Author','Homepage','Website','Depiction','Icon');

这篇关于如何在浏览Cydia repo时显示包/应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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