如何在 Mac OS X 上创建 .deb 包
我正在尝试在 Cydia 上上传我的应用程序,它需要 .deb 包。我无法弄清楚如何在 mac 上制作 .deb 包。当我在终端上编写此命令时,我使用的是 10.6.3
dpkg-deb -b MyProgram
终端输出是
-bash: dpkg-deb: command not found
I've install fink, Mac ports insert Mac DVD to find out 但没有任何帮助。
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
Terminal output is
-bash: dpkg-deb: command not found
I've install fink, Mac ports insert Mac DVD to find out but nothing helps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它可以在 Homebrew 上使用:
brew install dpkg
如果您没有安装 Homebrew,请转到 brew.sh< /a>.这是一个简单的单线安装。
Homebrew 比 Macports 或类似软件侵入性更小、更简单,并且更受欢迎。
It's available on Homebrew:
brew install dpkg
If you don't have Homebrew installed, go to brew.sh. It's a simple one-liner to install.
Homebrew is less invasive, less complicated, and more popular than Macports or similar.
我通过终端安装了 mac ports 1.7,因为没有可用的软件包。
之后我通过安装程序安装了Mac ports 1.9。
然后转到此路径
/opt/local/bin
并运行sudo port selfupdate
之后执行
sudo port install dpkg
这将需要一些时间,之后您的 dpkg 已成功配置。
运行此命令 sudo dpkg-deb -b MyProgram 来制作 MyProgram.deb
注意 MyProgram 应该包含 DEBIAN 文件夹,并在该控制文件下删除 txt 扩展名
下面是控制文件,
不要忘记在末尾放置一个新行控制文件,否则你会得到一个错误。
I installed mac ports 1.7 through terminal as no package is available.
After that I installed Mac ports 1.9 through installer.
Then goto this path
/opt/local/bin
and runsudo port selfupdate
after that execute
sudo port install dpkg
it will take some time and after that your dpkg is successfully configured.
Run this command
sudo dpkg-deb -b MyProgram
to make MyProgram.debNote MyProgram should contain DEBIAN folder and under that control file remove txt extention
Below is control file
dont forget to place a new line at the end of control file otherwise you will get an error.
在使用 mac ports 之前,你需要在你的系统上安装 Xcode - 我想你可以在第二张 mac DVD 上找到它。之后,您可以安装 mac ports,然后通过终端输入“sudo port install dpkg”,按回车键并输入密码。编译可能需要一些时间。你试过吗?
You need Xcode installed on your system before using mac ports - you find it on the second mac DVD, I think. After that, you can install mac ports and then via the Terminal type "sudo port install dpkg", press return and enter your password. It may take some time to compile. You tried that?
最好的选择是使用 FPM,您可以在 50 秒内创建它:
fpm
Best option is to use FPM and you can create it in 50 secs:
fpm
我认为这些链接对您有用:
如何在 mac 上制作 deb
使用 ant 创建 deb
i think these links can be useful for you:
How to make a deb on mac
Using ant to create deb