IPhone DevelopmentOfPackage the DEB FileIs the content to be introduced in this article,DEBI don't know how to say this thing... endless sorrow, Nima. It hurts me to white the apple many times. Due to the cost of service, the superior decided to let me focus on the repair system next week. I don't have any idea at all. Well, I don't want to complain about it.
DEB PackagingA lot of online tutorials .. but I have a PDF, which is very detailed .. this PDF is the web site green coffee, but before he gave me, I have found the source URL of PDF (http://wendang.baidu.com/view/419583c689eb172ded63b7c4.html here worship the selfless developers .). of course, this PDF is for thoseDEB FileThere are already some basic students .. otherwise a little .. what .. you know .. however, don't be discouraged. believe in the power of google and baidu. I personally worship google. The same technology development keyword, baidu can be up to 108,000 miles .. try again and again .. nima .) so it is good for you to touch it yourself.
Here I want to say that the installation of Cydia can basically be attributed to copy. in addition to DEBIAN files and other directory files, cydia copies the files to the corresponding directory of the iPhone while retaining the file permissions and attributes. For example, take tmp in PDF as an example. In the tmp directory, the file Library you created corresponds to/Root/Library in iPhone OS. therefore, if you want to add some executable files to the system directory of the iPhone OS, create the corresponding directory under the tmp directory ..
Do not understand: OK, for example:
Root/iPhoneOSFile/... (this directory is the iPhone OS directory)
Tmp/iPhoneOSFile/DynamicLibraryFile (this directory is the directory of your DEB package, DynamicLibraryFile is the file you want to copy ). If you still don't understand it, feel it yourself ..
Today is 2011-6-2 Haha. I finally restarted the SpringBoard using the script! I have been here for a long time! The last time I tried to write a script, I gave it to the white apple ..
First, Literacy:
In the DEB file, there are four types of script files in DEBIAN:
1. preinst scripts executed before copying files.
2. The script that postinst executes after copying the file.
3. The script executed by prerm before uninstallation.
4. The script executed after postrm is uninstalled.
Our installation script is preinst:
The Code is as follows (for reference only ):
- #! /Bin/sh-e
- # This script can be called in the following ways:
- #
- # Before the package is installed:
- # <New-preinst> install
- #
- # Before removed package is upgraded:
- # <New-preinst> install <old-version>
- #
- # Before the package is upgraded:
- # <New-preinst> upgrade <old-version>
- #
- #
- # If postrm fails during upgrade or fails on failed upgrade:
- # <Old-preinst> abort-upgrade <new-version>
- Remove_doc_symlink (){
- If [-L/usr/share/doc/dpkg-dev]; then
- Rm/usr/share/doc/dpkg-dev
- Fi
- }
- Case "$1" in
- Install)
- ;;
- Upgrade)
- Remove_doc_symlink
- ;;
- Abort-upgrade)
- ;;
- *)
- Echo "$0 called with unknown argument '$ 1'" 1> & 2
- Exit 1
- ;;
- Esac
- Exit 0
-
- Another postinst:
-
- #! /Bin/bash
- # This script can be called in the following ways:
- #
- # Before the package is installed:
- # <New-preinst> install
- #
- # Before removed package is upgraded:
- # <New-preinst> install <old-version>
- #
- # Before the package is upgraded:
- # <New-preinst> upgrade <old-version>
- #
- #
- # If postrm fails during upgrade or fails on failed upgrade:
- # <Old-preinst> abort-upgrade <new-version>
-
- If [[$1 = configure]
- Then
- Declare-a cydia
- Cydia = ($ CYDIA)
- If [[$ {CYDIA + @}]; then
- Eval "echo 'finish: reload' >&$ {cydia [0]}"
- Else
- Echo "Please respring your device ."
- Fi
- Fi
Summary:IPhone DevelopmentOfPackage the DEB FileThe introduction is complete, and the rest will be updated later. Please try it one by one! Finally, I hope this article will help you.