Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: azule -> pyzule #24

Merged
merged 5 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A feature-rich tweak for Instagram on iOS!\
- [Homebrew](https://brew.sh/#install)
- [CMake](https://formulae.brew.sh/formula/cmake#default) (brew install cmake)
- [Theos](https://theos.dev/docs/installation)
- [Azule](/~https://github.com/Al4ise/Azule/wiki)
- [pyzule](/~https://github.com/asdfzxcvbn/pyzule?tab=readme-ov-file#installation)

## Setup
1. Install iOS 14.5 frameworks for theos
Expand Down
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/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export ARCHS = arm64 arm64e
export ARCHS = arm64
TARGET := iphone:clang:latest:14.0
include $(THEOS)/makefiles/common.mk

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
Loading