Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Bug Fix Kernel Interface - TFP0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Jan 9, 2022
1 parent 8699cf0 commit ff10e79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified Workflow/fouldecrypt.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions Workflow/prepare.app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ fi
# make our sign
ldid -S"$WORKING_LOCATION/Workflow/Entitlements.plist" "$TARGET_APP/$APPLICATION_NAME"

# now read from the Info.plist for CFBundleShortVersionString
CONTROL_VERSION="$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$TARGET_APP/Info.plist")"
BUILD_VERSION="$(/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "$TARGET_APP/Info.plist")"

# ==============================================================================

Expand All @@ -73,7 +73,7 @@ cd "$WORKING_LOCATION/build/dpkg"
mkdir ./Applications
cp -r "$TARGET_APP" ./Applications/
cp -r "$WORKING_LOCATION/Workflow/DEBIAN" ./
sed -i '' "s/@@VERSION@@/$CONTROL_VERSION-REL-$TIMESTAMP/g" ./DEBIAN/control
sed -i '' "s/@@VERSION@@/$CONTROL_VERSION.$BUILD_VERSION-REL-$TIMESTAMP/g" ./DEBIAN/control

# fix permission
chmod -R 0755 DEBIAN
Expand Down
6 changes: 4 additions & 2 deletions Workflow/prepare.fouldecrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cp -r "$FOUL_GIT_LOC" ./build/fouldecrypt.tfp0
cd ./build/fouldecrypt.tfp0
git reset --hard
git clean -fdx
sed -i.backup 's/# USE_LIBKRW = 1/export USE_LIBKRW = 1/g' Makefile
sed -i.backup 's/# USE_TFP0 = 1/export USE_TFP0 = 1/g' Makefile
echo "export ADDITIONAL_CFLAGS = -DTHEOS_LEAN_AND_MEAN -fobjc-arc" >> Makefile
make -j "$MAKE_THREAD"
cp "./.theos/obj/debug/fouldecrypt" ../tfp0
Expand Down Expand Up @@ -77,7 +77,9 @@ cp ./build/kernrw ./product/fouldecrypt.kernrw # /usr/lib/libkernrw.0.dylib
cd product
echo "Patching library search path..."

install_name_tool -change /usr/lib/libkrw.0.dylib "@executable_path/libkrw.0.dylib" fouldecrypt.tfp0
# sorry there is no tfp0 dylib, there is my mistake

# install_name_tool -change tfp0.dylib "@executable_path/tfp0.dylib" fouldecrypt.tfp0
install_name_tool -change /usr/lib/libkrw.0.dylib "@executable_path/libkrw.0.dylib" fouldecrypt.krw
install_name_tool -change /usr/lib/libkernrw.0.dylib "@executable_path/libkernrw.0.dylib" fouldecrypt.kernrw

Expand Down

0 comments on commit ff10e79

Please sign in to comment.