mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-05-24 19:59:59 +00:00
Compare commits
5 Commits
f69c20fb2c
...
432eafeb77
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
432eafeb77 | ||
|
|
5a068bf71a | ||
|
|
9c7f571e8f | ||
|
|
6c5c90f060 | ||
|
|
d1af7d7a12 |
118
.github/workflows/build.yml
vendored
Normal file
118
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
name: Build Tweak
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tweak:
|
||||
description: 'Tweak folder to build (e.g., BusinessJB, CreditAgricoleJB, Infuse-iOS, TF1Plus/TF1Plus-tvOS)'
|
||||
required: false
|
||||
default: 'BusinessJB'
|
||||
branch:
|
||||
description: 'Branch to build from'
|
||||
required: false
|
||||
default: 'main'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.tweak || 'BusinessJB' }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build ${{ inputs.tweak || 'BusinessJB' }}
|
||||
runs-on: macos-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.branch || github.ref }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: brew install make ldid
|
||||
|
||||
- name: Set PATH environment variables
|
||||
run: |
|
||||
echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
||||
echo "THEOS=${{ github.workspace }}/theos" >> $GITHUB_ENV
|
||||
|
||||
# Original from YTweaks
|
||||
- name: Get Theos commit
|
||||
run: |
|
||||
get_commit_hash() {
|
||||
local repo_url=$1
|
||||
git ls-remote "$repo_url" HEAD | awk '{print substr($1,1,7)}'
|
||||
}
|
||||
TWEAK_PATH="${{ inputs.tweak || 'BusinessJB' }}"
|
||||
if [[ "$TWEAK_PATH" == *"tvOS"* || "$TWEAK_PATH" == *"TVOS"* ]]; then
|
||||
THEOS_URL="https://github.com/NohamR/theos-tvOS"
|
||||
else
|
||||
THEOS_URL="https://github.com/roothide/theos"
|
||||
fi
|
||||
echo "THEOS_REPO=$THEOS_URL" >> $GITHUB_ENV
|
||||
echo "THEOS_COMMIT=$(get_commit_hash "$THEOS_URL")" >> $GITHUB_ENV
|
||||
|
||||
- name: Cache Theos
|
||||
id: cache-theos
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: theos
|
||||
key: Tweak-18.6-SDK-${{ env.THEOS_COMMIT }}
|
||||
|
||||
- name: Setup Theos
|
||||
if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
git clone --quiet --depth=1 --recurse-submodules ${{ env.THEOS_REPO }}.git theos
|
||||
git clone --quiet --depth=1 -n --filter=tree:0 https://github.com/Tonwalter888/iOS-SDKs.git
|
||||
cd iOS-SDKs
|
||||
git sparse-checkout set --no-cone iPhoneOS18.6.sdk
|
||||
git checkout --quiet
|
||||
mv *.sdk "$THEOS/sdks"
|
||||
|
||||
- name: Clone headers
|
||||
run: |
|
||||
if [ ! -d "$THEOS/include/PSHeader" ]; then
|
||||
git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git "$THEOS/include/PSHeader"
|
||||
else
|
||||
cd $THEOS/include/PSHeader
|
||||
git pull --quiet --force
|
||||
cd ${{ github.workspace }}
|
||||
fi
|
||||
|
||||
- name: Build Tweak
|
||||
run: |
|
||||
TWEAK_PATH="${{ inputs.tweak || 'BusinessJB' }}"
|
||||
TWEAK_NAME=$(basename "$TWEAK_PATH")
|
||||
|
||||
cd "$TWEAK_PATH"
|
||||
echo "TWEAK_VERSION=$(grep '^Version:' control | cut -d ' ' -f2)" >> $GITHUB_ENV
|
||||
echo "TWEAK_NAME=$TWEAK_NAME" >> $GITHUB_ENV
|
||||
|
||||
# Check if this is a tvOS tweak
|
||||
if grep -q "TARGET.*appletv" Makefile; then
|
||||
# tvOS tweaks don't use rootless/roothide schemes
|
||||
make clean package DEBUG=0 FINALPACKAGE=1
|
||||
else
|
||||
# iOS tweaks build with multiple schemes
|
||||
make clean package DEBUG=0 FINALPACKAGE=1
|
||||
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
|
||||
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide
|
||||
fi
|
||||
|
||||
mv packages/*.deb ${{ github.workspace }}
|
||||
|
||||
- name: Upload the tweak .deb(s)
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ env.TWEAK_NAME }} v${{ env.TWEAK_VERSION }}
|
||||
path: ${{ github.workspace }}/*.deb
|
||||
if-no-files-found: error
|
||||
overwrite: true
|
||||
|
||||
- name: Create a draft release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
tag_name: ${{ env.TWEAK_NAME }}-v${{ env.TWEAK_VERSION }}
|
||||
name: ${{ env.TWEAK_NAME }} v${{ env.TWEAK_VERSION }}
|
||||
files: ${{ github.workspace }}/*.deb
|
||||
draft: true
|
||||
@@ -14,6 +14,7 @@ iOS tweaks built with [Theos](https://theos.dev), injected into IPAs via [cyan](
|
||||
| [Infuse](Infuse/Infuse-tvOS/index.md) | Infuse 8.2.4 | tvOS 18.3 |
|
||||
| [Infuse (iOS)](Infuse/Infuse-iOS/index.md) | Infuse 8.4.2 | iOS 18+ |
|
||||
| [TF1+ (tvOS)](TF1Plus/TF1Plus-tvOS/index.md) | TF1+ 11.36.0 | tvOS |
|
||||
| [TF1+ (iOS)](TF1Plus/TF1Plus-iOS/index.md) | TF1+ 11.36.0 | iOS 14+ |
|
||||
|
||||
## Build
|
||||
|
||||
|
||||
3
TF1Plus/TF1Plus-iOS/.gitignore
vendored
Normal file
3
TF1Plus/TF1Plus-iOS/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.theos/
|
||||
packages/
|
||||
.DS_Store
|
||||
12
TF1Plus/TF1Plus-iOS/Makefile
Normal file
12
TF1Plus/TF1Plus-iOS/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
TARGET = iphone:latest:14.0
|
||||
ARCHS = arm64 arm64e
|
||||
INSTALL_TARGET_PROCESSES = mytf1
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = TF1Plus
|
||||
|
||||
TF1Plus_FILES = Tweak.x
|
||||
TF1Plus_CFLAGS = -fobjc-arc
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
10
TF1Plus/TF1Plus-iOS/TF1Plus.plist
Normal file
10
TF1Plus/TF1Plus-iOS/TF1Plus.plist
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
Filter = {
|
||||
Bundles = (
|
||||
"com.tf1.applitf1",
|
||||
);
|
||||
Executables = (
|
||||
mytf1,
|
||||
);
|
||||
};
|
||||
}
|
||||
7
TF1Plus/TF1Plus-iOS/Tweak.x
Normal file
7
TF1Plus/TF1Plus-iOS/Tweak.x
Normal file
@@ -0,0 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
%hook FWRequestConfiguration
|
||||
- (id)initWithServerURL:(id)arg1 playerProfile:(id)arg2 {
|
||||
return self;
|
||||
}
|
||||
%end
|
||||
9
TF1Plus/TF1Plus-iOS/control
Normal file
9
TF1Plus/TF1Plus-iOS/control
Normal file
@@ -0,0 +1,9 @@
|
||||
Package: xyz.nohamr.tf1plus
|
||||
Name: TF1+ (iOS)
|
||||
Version: 1.0
|
||||
Architecture: iphoneos-arm64
|
||||
Description: TF1+ Ads blocker hook for iOS
|
||||
Maintainer: NohamR
|
||||
Author: NohamR
|
||||
Section: Tweaks
|
||||
Depends: mobilesubstrate (>= 0.9.5000)
|
||||
22
TF1Plus/TF1Plus-iOS/index.md
Normal file
22
TF1Plus/TF1Plus-iOS/index.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# TF1+ iOS
|
||||
|
||||
Block ads initialization on TF1+.
|
||||
|
||||
- **App**: [TF1+ : Streaming, TV en Direct](https://apps.apple.com/fr/app/tf1-streaming-tv-en-direct/id407248490)
|
||||
- **Tested version**: 11.36.0
|
||||
- **Target**: iOS
|
||||
|
||||
## Build
|
||||
|
||||
```sh
|
||||
make package FINALPACKAGE=1
|
||||
```
|
||||
|
||||
## Inject
|
||||
|
||||
```sh
|
||||
cyan -i tf1plus.ipa \
|
||||
-o tf1plus_patched.ipa \
|
||||
-f xyz.nohamr.tf1plus_1.0_iphoneos-arm64.deb \
|
||||
-u
|
||||
```
|
||||
Reference in New Issue
Block a user