It’ s the core of our tweak.
- Package
Theos uses “make package” command to pack Theos projects. In fact, “make package”
executes “make” and “dpkb-deb” in sequence to finish its job.
snakeninnysiMac:iosreproject snakeninny$ make package
Making all for tweak iOSREProject...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
Linking tweak iOSREProject...
Stripping iOSREProject...
Signing iOSREProject...
Making stage for tweak iOSREProject...
dm.pl: building package `com.iosre.iosreproject' in `./com.iosre.iosreproject_0.0.1-
7_iphoneos-arm.deb'.
“make package” has created a “com.iosre.iosreproject_0.0.1-7_iphoneos-arm.deb” file,
which is ready to be published.
There is another important function of “make package” command. After executing this
command, besides “obj” folder, another “_” folder is also created as shown below.
snakeninnysiMac:iosreproject snakeninny$ ls - l
total 40
- rw-r--r-- 1 snakeninny staff 262 Dec 3 09:20 Makefile
- rw-r--r-- 1 snakeninny staff 0 Dec 3 11:28 Tweak.xm
drwxr-xr-x 4 snakeninny staff 136 Dec 3 11:35 _ - rw-r--r-- 1 snakeninny staff 2396 Dec 3 11:35 com.iosre.iosreproject_0.0.1-
7_iphoneos-arm.deb - rw-r--r-- 1 snakeninny staff 223 Dec 3 09:05 control
- rw-r--r--@ 1 snakeninny staff 175 Dec 3 09:48 iOSREProject.plist
drwxr-xr-x 5 snakeninny staff 170 Dec 3 11:35 obj
lrwxr-xr-x 1 snakeninny staff 11 Dec 3 09:05 theos - > /opt/theos
What’s this folder for? Open it, we can see 2 subfolders in it, namely “DEBIAN” and
“Library”:
snakeninnysiMac:iosreproject snakeninny$ ls - l _
total 0
drwxr-xr-x 3 snakeninny staff 102 Dec 3 11:35 DEBIAN
drwxr-xr-x 3 snakeninny staff 102 Dec 3 11:35 Library
There is only an edited control file in “DEBIAN”.
snakeninnysiMac:iosreproject snakeninny$ ls - l _/DEBIAN
total 8
- rw-r--r-- 1 snakeninny staff 245 Dec 3 11:35 control
The structure of “Library” directory is shown in figure 3-11: