如何在Mac OS X上创建.deb包 [英] How to create .deb packages on Mac OS X
问题描述
我正在尝试在Cydia上传我的应用,它需要.deb包。我无法弄清楚如何在mac上制作.deb包。我在终端上写这个命令时使用10.6.3
I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal
dpkg-deb -b MyProgram
终端输出
-bash: dpkg-deb: command not found
我安装了fink,Mac端口插入Mac DVD到发现但没有任何帮助。
I've install fink, Mac ports insert Mac DVD to find out but nothing helps.
推荐答案
我通过终端安装了mac ports 1.7,因为没有可用的软件包。
I installed mac ports 1.7 through terminal as no package is available.
之后我通过安装程序安装了Mac端口1.9。
After that I installed Mac ports 1.9 through installer.
然后转到此路径 / opt / local / bin
并运行 sudo port selfupdate
Then goto this path /opt/local/bin
and run sudo port selfupdate
执行后 sudo port install dpkg
这需要一些时间,之后你的dpkg已成功配置。
it will take some time and after that your dpkg is successfully configured.
运行此命令 sudo dpkg-deb -b MyProgram
使MyProgram.deb
Run this command sudo dpkg-deb -b MyProgram
to make MyProgram.deb
注意MyProgram应包含DEBIAN文件夹,并在该控制文件下删除txt扩展
Note MyProgram should contain DEBIAN folder and under that control file remove txt extention
以下是控制文件
Website: www.zeeshanullah.com
Maintainer: zeeshanullah <zzeeshann@gmail.com>
Name: Snapture
Package: zeeshanullah
Section: zeeshanullah
Version: 2.x.x
Architecture: iphoneos-arm
Description: GPS joke.
Sponsor: zeeshanullah.com <zeeshanullah>
别忘了在控制文件的末尾添加一个新行,否则会出错。
dont forget to place a new line at the end of control file otherwise you will get an error.
这篇关于如何在Mac OS X上创建.deb包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!