Skip to content

Instantly share code, notes, and snippets.

@PoomSmart
Last active April 24, 2024 13:38
Show Gist options
  • Save PoomSmart/96fc9ae6381d45dcc78d7749aa294056 to your computer and use it in GitHub Desktop.
Save PoomSmart/96fc9ae6381d45dcc78d7749aa294056 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