Skip to content

Instantly share code, notes, and snippets.

@Mabdelwanis
Forked from PoomSmart/build-rootless.sh
Created May 15, 2023 02:55
Show Gist options
  • Save Mabdelwanis/fded77eb63905e60cb3f2e8ea2424ae4 to your computer and use it in GitHub Desktop.
Save Mabdelwanis/fded77eb63905e60cb3f2e8ea2424ae4 to your computer and use it in GitHub Desktop.
Shell script to build your tweaks compatible with rootless jailbreak.
#!/usr/bin/env bash
set -e
PROJECT="$1"
if [ -z "$PROJECT" ]; then
echo "Usage: $0 <project>"
exit 1
fi
cd "$PROJECT"
make clean
export THEOS_PACKAGE_SCHEME=rootless
# export ARCHS=arm64 # use this one if you target AppStore apps
export ARCHS="arm64 arm64e"
export TARGET=iphone:clang:latest:14.0
make package FINALPACKAGE=1
export -n THEOS_PACKAGE_SCHEME
export -n ARCHS
export -n TARGET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment