Mac下打包iPhone越狱 deb格式文件(详细教程)


一、安装dpkg打包工具
根据自己的mac版本进行下载,本人是10.7.5的,下载的fink-0.34.5版本(http://download.csdn.net/detail/linqir/5267075),下载后解压,在目录中找到bootstrap文件并用终端打开,
方法:右键-打开方式-终端,

Fink must be installed and run with superuser (root) privileges. Fink can automatically try to become root when it's run from a user account. Since you're currently running this
[pre]script as a normal user, the method you choose will also be used immediately for this script. Avaliable methods:(1)    Use sudo
(2)    Use su
(3)    None, fink must be run as root [/pre]
Choose a method: [1]


此时,默认选择的是[1],你只需要轻敲回车即可,下面还会有很多选项,都只需要轻敲回车即可,因为系统默认帮你做出了选择。

这里需要提醒各位,有一个需要自己手动填写一个选项,看下面↓,在这我选择的是(4) High,而不是默认的[2],大家记得啦~~

Fink does not yet support an official set of binary packages for your current
[pre]distribution.=> Setting UseBinaryDist to 'false'The selfupdate method has not been set yet, so you are not yet being asked whether to include the "unstable" fink tree. If you are interested in the "unstable" tree, first run "finkselfupdate" and then run "fink configure" again.
(1)    Quiet (do not show download statistics)
(2)    Low (do not show tarballs being expanded)
(3)    Medium (will show almost everything)
(4)    High (will show everything) [/pre]
How verbose should Fink be? [2] 4

继续轻敲回车,一路回车下去,就到了选择国家的时候了,选择(5)    North America和(5)    United States。
Choose a continent:
[pre](1)    Africa
(2)    Asia
(3)    Australia
(4)    Europe
(5)    North America
(6)    South America, Middle America and CaribbeanYour continent? [5]


Choose a country:
(1)    No selection - display all mirrors on the continent
(2)    Bahamas
(3)    Canada
(4)    Mexico
(5)    United StatesYour country? [5]


Choose a mirror for 'Master Fink mirrors':
(1)    Primary: http://distfiles.master.finkmirrors.net/
(2)    United States: http://distfiles.msn.wi.us.finkmirrors.net/mirrors/fink/distfiles/
(3)    United States: http://distfiles.sjc.ca.us.finkmirrors.net/Mirror for Master Fink mirrors? [1]


Choose a mirror for 'RSync SelfUpdate':
(1)    Primary: rsync://distfiles.master.finkmirrors.net/finkinfo/
(2)    United States: rsync://sjc.ca.us.finkmirrors.net/finkinfo/
(3)    United States: rsync://msn.wi.us.finkmirrors.net/finkinfo/
Mirror for RSync SelfUpdate? [1]

再一路跟着代码下载,依然是按回车,不用再选择。
下面紧接着就是下载tarballs的界面,这时候你可以去逛逛淘宝,需要一段时间,下面还会有需要选择的,依然轻敲回车,最后终端上出现Enjoy.时,安装Fink结束。

别高兴太早了,要使用 Fink 目录下安装的软件,包括软件包管理器本身,我们必须相应设置 PATH 环境变量。
再次打开终端,运行下面代码

  1. /sw/bin/pathsetup.sh

运行ok后退出即可。
大功告成,你的mac终端上也可以运行dpkg-deb的指令了,不用再装Linux系统了。

二、打包deb文件

打包deb文件需要有如下的目录结构,我是在桌面新建一个tmp文件夹,tmp下面有Applications和DEBIAN目录(注意大小写),Applications存放的是编译好的app文件(从ipa包中解压出来的app文件,可将ipa包后缀改zip然后解压提取app),DEBIAN包是文本文件,但是必须有x(可执行)权限,control里的格式也很重要,下面会说。

我的control文件格式如下,如下的格式只能保证能够成功打包deb文件,实际中打包需要根据自己的app去修改,可以网上查找更详细的control文件参数说明。

Package: com.taobao.haoganhuo
Name: haoganhuo
Version: 0.1-1
Description: haoganhuo
Section: app
Depends: firmware (>= 4.3)
Priority: optional
Architecture: iphoneos-arm
Author: linge <http://haoganhuo.taobao.com>
Homepage: http://haoganhuo.taobao.com
Maintainer: linge <http://haoganhuo.taobao.com>


下面就开始打包了

打开终端:运行 chmod -R 775 ~/Desktop/tmp     回车

                       dpkg-deb -b ~/Desktop/tmp   ~/Desktop/haoganhuo.deb  回车

这样打包出来的的文件就是桌面上的haoganhuo.deb文件,

然后就可以用ifile进行安装了。

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值