From 9972c5dce0510fd1abe5c8b42d9ae44be4b3d54e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 14 Dec 2014 05:23:59 -0800 Subject: [PATCH] Add a preinst script that stash LockCydget folder. --- makefile | 1 + preinst | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 preinst diff --git a/makefile b/makefile index cf4d247..566b372 100644 --- a/makefile +++ b/makefile @@ -36,6 +36,7 @@ deb: all mkdir -p package/DEBIAN mkdir -p package/Library/MobileSubstrate/DynamicLibraries sed -e 's/%/$(shell cycc -V)/' control.in >package/DEBIAN/control + cp -a preinst package/DEBIAN mkdir -p package/Library/PreferenceLoader/Preferences; cp -a CydgetLoader.{dylib,plist} package/Library/MobileSubstrate/DynamicLibraries mkdir -p package/System/Library/LockCydgets diff --git a/preinst b/preinst new file mode 100755 index 0000000..b462cfa --- /dev/null +++ b/preinst @@ -0,0 +1,5 @@ +#!/bin/bash + +if [[ $1 == install || $1 == upgrade ]]; then + /usr/libexec/cydia/move.sh /System/Library/LockCydgets +fi -- 2.45.2