How to display package / app icon when browsing Cydia repo

岁酱吖の 提交于 2019-12-08 02:38:08

问题


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,

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

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

回答1:


Yes, the Packages file makes a difference.

To include Icon field in Packages file You need edit dpkg-scanpackages script and add "Icon" to the end of the array 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');


来源:https://stackoverflow.com/questions/18238385/how-to-display-package-app-icon-when-browsing-cydia-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!