Skip to content

Commit

Permalink
chore: azule -> pyzule
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfzxcvbn committed Apr 14, 2024
1 parent 3dea058 commit 4c4a282
Show file tree
Hide file tree
Showing 216 changed files with 19 additions and 7,095 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Temporary Items
_
obj
.theos
packages/*.ipa
packages

# End of https://www.toptal.com/developers/gitignore/api/macos,theos-tweak

Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "modules/libflex/FLEX"]
path = modules/libflex/FLEX
url = https://github.com/FLEXTool/FLEX
url = https://github.com/asdfzxcvbn/FLEX
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ BHInsta_CFLAGS = -fobjc-arc -Wno-unsupported-availability-guard -Wno-unused-valu

include $(THEOS_MAKE_PATH)/tweak.mk

SUBPROJECTS += libflex
BHInsta_SUBPROJECTS += modules/libflex
25 changes: 13 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
#!/usr/bin/env bash

PROJECT_PATH=$(pwd)
CMAKE_OSX_ARCHITECTURES="arm64e;arm64"

ipaFile="$(find ./packages/*com.burbn.instagram*.ipa -type f -exec basename {} \;)"

if [ -z "${ipaFile}" ]; then
echo -e '\033[1m\033[0;31m./packages/com.burbn.instagram.ipa not found.\nPlease put a decrypted Instagram IPA in its path.\033[0m'
exit 1
elif [ -z "$(ls -A modules/libflex/FLEX)" ]; then
echo -e '\033[1m\033[0;31mFLEX submodule not found.\nPlease run the following command to checkout submodules:\n\n\033[0m git submodule update --init --recursive'
exit 1
fi

echo -e '\033[1m\033[32mBuilding BHInsta tweak for sideloading (as IPA)\033[0m'

make clean
rm -rf .theos
make

# IPA File
ipaFile="$(find ./packages/*com.burbn.instagram*.ipa -type f -exec basename {} \;)"

if [ -n "${ipaFile}" ]; then

echo -e '\033[1m\033[32mBuilding the IPA.\033[0m'
azule -i "$PROJECT_PATH/packages/${ipaFile}" -o "$PROJECT_PATH/packages" -n BHInsta-sideloaded -r -f "$PROJECT_PATH/.theos/obj/debug/BHInsta.dylib" "$PROJECT_PATH/packages/Cephei.framework" "$PROJECT_PATH/packages/CepheiUI.framework" "$PROJECT_PATH/packages/CepheiPrefs.framework" "$PROJECT_PATH/modules/libflex/.theos/obj/debug/libbhFLEX.dylib"

echo -e "\033[1m\033[32mDone, we hope you enjoy BHInsta!\033[0m\n\nYou can find the ipa file at: $PROJECT_PATH/packages"
else
echo -e '\033[1m\033[0;31m./packages/com.burbn.instagram.ipa not found.\nPlease put a decrypted Instagram IPA in its path.\033[0m'
fi
echo -e '\033[1m\033[32mBuilding the IPA.\033[0m'
pyzule -i "packages/${ipaFile}" -o packages/BHInsta-sideloaded -uwsgf .theos/obj/debug/BHInsta.dylib .theos/obj/debug/libbhFLEX.dylib -m 15.0
echo -e "\033[1m\033[32mDone, we hope you enjoy BHInsta!\033[0m\n\nYou can find the ipa file at: $(pwd)/packages"
2 changes: 1 addition & 1 deletion modules/libflex/FLEX
4 changes: 2 additions & 2 deletions modules/libflex/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export ARCHS = arm64 arm64e
TARGET := iphone:clang:latest:14.0
export ARCHS = arm64
TARGET := iphone:clang:16.5:14.0
include $(THEOS)/makefiles/common.mk

# FULL PATH of the FLEX repo on your own machine
Expand Down
Binary file removed packages/Cephei.framework/Cephei
Binary file not shown.
8 changes: 0 additions & 8 deletions packages/Cephei.framework/Headers/Cephei.h

This file was deleted.

19 changes: 0 additions & 19 deletions packages/Cephei.framework/Headers/HBOutputForShellCommand.h

This file was deleted.

Loading

0 comments on commit 4c4a282

Please sign in to comment.