Shrink the Cydia package from 512mb to only 64 ##build

This commit is contained in:
pancake 2019-08-22 19:26:03 +02:00
parent b3db6b99dc
commit 5b87871294
2 changed files with 26 additions and 6 deletions

View File

@ -49,10 +49,17 @@ LDFLAGS+=-L../../libr/config -lr_config
LDFLAGS+=${LINK}
include ../../libr/config.mk
include ../../libr/socket/deps.mk
include ../../libr/magic/deps.mk
include ../../libr/main/deps.mk
include ../../shlr/zip/deps.mk
include ../../shlr/gdb/deps.mk
include ../../shlr/java/deps.mk
include ../../shlr/bochs/deps.mk
include ../../shlr/grub/deps.mk
include ../../shlr/qnx/deps.mk
include ../../shlr/ar/deps.mk
include ../../shlr/capstone.mk
all: symlinks

View File

@ -1,7 +1,7 @@
#!/bin/sh
STOW=0
fromscratch=1
fromscratch=1 # 1
onlydebug=0
onlymakedeb=0
static=1
@ -42,10 +42,22 @@ makeDeb() {
sudo tar xpzvf /tmp/r2ios-${CPU}.tar.gz -C sys/cydia/radare2/root
rm -f sys/cydia/radare2/root/${PREFIX}/lib/*.dSYM
rm -f sys/cydia/radare2/root/${PREFIX}/lib/*.a
for a in sys/cydia/radare2/root/usr/bin/* sys/cydia/radare2/root/usr/lib/*.dylib ; do
echo "Signing $a"
ldid2 -Sbinr/radare2/radare2_ios.xml $a
done
rm -f sys/cydia/radare2/root/${PREFIX}/lib/*.dylib
if [ "$static" = 1 ]; then
(
rm -f sys/cydia/radare2/root/${PREFIX}/bin/*
cp -f binr/blob/radare2 sys/cydia/radare2/root/${PREFIX}/bin
cd sys/cydia/radare2/root/${PREFIX}/bin
for a in r2 rabin2 rarun2 rasm2 ragg2 rahash2 rax2 rafind2 radiff2 ; do ln -fs radare2 $a ; done
)
echo "Signing radare2"
ldid2 -Sbinr/radare2/radare2_ios.xml sys/cydia/radare2/root/usr/bin/radare2
else
for a in sys/cydia/radare2/root/usr/bin/* sys/cydia/radare2/root/usr/lib/*.dylib ; do
echo "Signing $a"
ldid2 -Sbinr/radare2/radare2_ios.xml $a
done
fi
if [ "${STOW}" = 1 ]; then
(
cd sys/cydia/radare2/root/
@ -98,7 +110,8 @@ else
time make -j4
if [ "$static" = 1 ]; then
rm -f libr/*/*.dylib
( cd binr ; make clean ; make -j 4)
( cd binr ; make clean ;
cd blob ; make -j 4)
fi
if [ $? = 0 ]; then
makeDeb