jailbroken ldid dpkg deb

I added a script as custom build phase. The script signs the app, create a package, copy it to the phone and install it.

The Build Phase is "Run a Script" with /bin/sh and I added "${PROJECT_DIR}/MyApp/install.sh"

The scripts (very basic - no error handling) is below (replace with appropriate values) :

(LatestBuild is a link to the build directory) (ldid is installed with iosopendev project)


cd $HOME
/Projects/iPhone/MyProject/MyApp cp -r ../LatestBuild/MyApp.app com.test.MyApp/Applications/ ldid -S com.test.MyApp/Applications/MyApp.app/MyApp rm com.test.MyApp.deb 2>&1/opt/local/bin/dpkg-deb -b com.test.MyApp scp com.test.MyApp.deb root@192.168.0.10:/var/root ssh root@192.168.0.10"dpkg -r com.test.MyApp" ssh root@192.168.0.10"dpkg -i com.test.MyApp.deb" ssh root@192.168.0.10"killall -9 MyApp"#ssh root@192.168.0.10 "killall -HUP SpringBoard" cd -

It can be improved a lot - but it just works for my needs

原文地址:https://www.cnblogs.com/qq378829867/p/2814932.html