RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,015
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
Apparently it was including LiluHelper itself in the .plist, excluding those 2 lines fixed it
Yeah... you don't want to self-refer.
The script that I wrote (from which the-braveknight version is based) has a special case to exclude LiluFriend/LiluFriendLite.
Note also that if OSCompatibleBundleVersion is not available/not present, the script should use OSBundleVersion.
relevant snippets from my original script:
Code:
function check_bundlelibraries
# $1 Info.plist to check OSBundleLibraries for as.vit9696.Lilu dependency
{
local check=$(get_plist_property "$1" ":CFBundleIdentifier")
if [[ "$check" == "__property_not_found__" ]]; then echo "NO" && exit; fi
if [[ "$check" == "as.vit9696.Lilu" ]]; then echo "YES" && exit; fi
if [[ "$check" == "com.apple.security.LiluFriend" || "$check" == "com.apple.security.LiluFriendLite" ]]; then echo "NO" && exit; fi
check=$(get_plist_property "$1" ":OSBundleLibraries:as.vit9696.Lilu")
if [[ "$check" != "__property_not_found__" ]]; then echo "YES"; else echo "NO"; fi
}
Code:
function add_dependency
# $1 kext path with Lilu dependency
# $2 LiluFriend kext path
{
local plist="$1"/Contents/Info.plist
local version=$(get_plist_property "$plist" ":OSBundleCompatibleVersion")
if [[ "$version" == "__property_not_found__" ]]; then
version=$(get_plist_property "$plist" ":CFBundleVersion")
fi
if [[ "$version" != "__property_not_found__" ]]; then
local bundleid=$(get_plist_property "$plist" ":CFBundleIdentifier")
if [[ "$bundleid" != "__property_not_found__" ]]; then
echo " $kext: $bundleid $version"
set_plist_string_property "$2/Contents/Info.plist" ":OSBundleLibraries:$bundleid" "$version"
fi
fi
}
Last edited: