mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-07-12 07:00:09 +00:00
Compare commits
4 Commits
OqeePlus-t
...
TF1Plus-tv
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29578e8aff | ||
|
|
43431e4916 | ||
|
|
dee3024d26 | ||
|
|
e41d8f7279 |
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@@ -28,6 +28,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ inputs.branch || github.ref }}
|
ref: ${{ inputs.branch || github.ref }}
|
||||||
|
|
||||||
|
- name: Cache Homebrew packages
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/Library/Caches/Homebrew
|
||||||
|
key: brew-${{ runner.os }}-make-ldid
|
||||||
|
restore-keys: |
|
||||||
|
brew-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install make ldid
|
run: brew install make ldid
|
||||||
|
|
||||||
@@ -36,8 +44,7 @@ jobs:
|
|||||||
echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
||||||
echo "THEOS=${{ github.workspace }}/theos" >> $GITHUB_ENV
|
echo "THEOS=${{ github.workspace }}/theos" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Original from YTweaks
|
- name: Get Theos and dependencies commit
|
||||||
- name: Get Theos commit
|
|
||||||
run: |
|
run: |
|
||||||
get_commit_hash() {
|
get_commit_hash() {
|
||||||
local repo_url=$1
|
local repo_url=$1
|
||||||
@@ -51,13 +58,18 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "THEOS_REPO=$THEOS_URL" >> $GITHUB_ENV
|
echo "THEOS_REPO=$THEOS_URL" >> $GITHUB_ENV
|
||||||
echo "THEOS_COMMIT=$(get_commit_hash "$THEOS_URL")" >> $GITHUB_ENV
|
echo "THEOS_COMMIT=$(get_commit_hash "$THEOS_URL")" >> $GITHUB_ENV
|
||||||
|
echo "PSHEADER_COMMIT=$(get_commit_hash "https://github.com/PoomSmart/PSHeader.git")" >> $GITHUB_ENV
|
||||||
|
echo "SDK_COMMIT=$(get_commit_hash "https://github.com/Tonwalter888/iOS-SDKs.git")" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Cache Theos
|
- name: Cache Theos
|
||||||
id: cache-theos
|
id: cache-theos
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: theos
|
path: theos
|
||||||
key: Tweak-18.6-SDK-${{ env.THEOS_COMMIT }}
|
key: Theos-${{ env.THEOS_COMMIT }}-SDK-${{ env.SDK_COMMIT }}-PSHeader-${{ env.PSHEADER_COMMIT }}
|
||||||
|
restore-keys: |
|
||||||
|
Theos-${{ env.THEOS_COMMIT }}-SDK-${{ env.SDK_COMMIT }}-
|
||||||
|
Theos-${{ env.THEOS_COMMIT }}-
|
||||||
|
|
||||||
- name: Setup Theos
|
- name: Setup Theos
|
||||||
if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }}
|
if: ${{ steps.cache-theos.outputs.cache-hit != 'true' }}
|
||||||
@@ -68,16 +80,8 @@ jobs:
|
|||||||
git sparse-checkout set --no-cone iPhoneOS18.6.sdk
|
git sparse-checkout set --no-cone iPhoneOS18.6.sdk
|
||||||
git checkout --quiet
|
git checkout --quiet
|
||||||
mv *.sdk "$THEOS/sdks"
|
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 }}
|
cd ${{ github.workspace }}
|
||||||
fi
|
git clone --quiet --depth=1 https://github.com/PoomSmart/PSHeader.git "$THEOS/include/PSHeader"
|
||||||
|
|
||||||
- name: Build Tweak
|
- name: Build Tweak
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
Filter = {
|
Filter = {
|
||||||
Bundles = (
|
Executables = (
|
||||||
"com.firecore.infuse",
|
infuse,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
TARGET = appletv:latest:18.3
|
TARGET = appletv:latest:18.3
|
||||||
ARCHS = arm64
|
ARCHS = arm64 arm64e
|
||||||
INSTALL_TARGET_PROCESSES = infuse
|
INSTALL_TARGET_PROCESSES = infuse
|
||||||
THEOS_PACKAGE_SCHEME = rootless
|
|
||||||
|
|
||||||
include $(THEOS)/makefiles/common.mk
|
include $(THEOS)/makefiles/common.mk
|
||||||
|
|
||||||
@@ -10,8 +9,6 @@ TWEAK_NAME = Infuse
|
|||||||
Infuse_FILES = Tweak.x
|
Infuse_FILES = Tweak.x
|
||||||
Infuse_CFLAGS = -fobjc-arc
|
Infuse_CFLAGS = -fobjc-arc
|
||||||
Infuse_FRAMEWORKS = Foundation UIKit
|
Infuse_FRAMEWORKS = Foundation UIKit
|
||||||
|
Infuse_LDFLAGS += $(THEOS)/vendor/lib/appletv/CydiaSubstrate.framework/CydiaSubstrate.tbd
|
||||||
|
|
||||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||||
test-print:
|
|
||||||
@echo "ARCH is $(THEOS_PACKAGE_ARCH)"
|
|
||||||
@echo "CONTROL is $(_THEOS_DEB_PACKAGE_CONTROL_PATH)"
|
|
||||||
|
|||||||
@@ -56,17 +56,33 @@
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// Add credits
|
// Add credits
|
||||||
@interface FCVersionView : UIView
|
@interface FCTVSettingsController : UITableViewController
|
||||||
@property (nonatomic, strong) UILabel *label;
|
- (UITableView *)tableView;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
%hook FCVersionView
|
%hook FCTVSettingsController
|
||||||
- (void)awakeFromNib {
|
- (void)setUpAppVersionLabel {
|
||||||
%orig;
|
%orig;
|
||||||
UILabel *label = (UILabel *)[self valueForKey:@"label"];
|
|
||||||
if ([label.text containsString:@"Infuse Pro"] && ![label.text hasPrefix:@"Infuse Team •"]) {
|
UITableView *tv = [self tableView];
|
||||||
label.text = [NSString stringWithFormat:@"Infuse Team • %@", label.text];
|
UILabel *footer = (UILabel *)tv.tableFooterView;
|
||||||
}
|
|
||||||
|
// Guard: footer is nil/not a UILabel
|
||||||
|
if (![footer isKindOfClass:[UILabel class]]) return;
|
||||||
|
|
||||||
|
NSAttributedString *current = footer.attributedText;
|
||||||
|
if (!current.length) return;
|
||||||
|
|
||||||
|
// Handles repeated calls
|
||||||
|
if ([current.string hasPrefix:@"Infuse Team •"]) return;
|
||||||
|
|
||||||
|
NSDictionary *attrs = [current attributesAtIndex:0 effectiveRange:nil];
|
||||||
|
NSMutableAttributedString *mas = [current mutableCopy];
|
||||||
|
NSAttributedString *prefix = [[NSAttributedString alloc]
|
||||||
|
initWithString:@"Infuse Team • "
|
||||||
|
attributes:attrs];
|
||||||
|
[mas insertAttributedString:prefix atIndex:0];
|
||||||
|
footer.attributedText = mas;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Package: io.infuseteam.infuserootless
|
Package: io.infuseteam.infuserootless
|
||||||
Name: Infuse (Rootless)
|
Name: Infuse (Rootless)
|
||||||
Version: 2.0
|
Version: 2.2
|
||||||
Architecture: appletvos-arm64
|
Architecture: appletvos-arm64
|
||||||
Description: Unlock the full potential of Infuse
|
Description: Unlock the full potential of Infuse
|
||||||
Maintainer: Infuse Team
|
Maintainer: Infuse Team
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
TARGET = appletv:latest:18.3
|
TARGET = appletv:latest:18.3
|
||||||
ARCHS = arm64
|
ARCHS = arm64
|
||||||
INSTALL_TARGET_PROCESSES = Oqee
|
INSTALL_TARGET_PROCESSES = Oqee
|
||||||
THEOS_PACKAGE_SCHEME = rootless
|
|
||||||
|
|
||||||
include $(THEOS)/makefiles/common.mk
|
include $(THEOS)/makefiles/common.mk
|
||||||
|
|
||||||
@@ -9,5 +8,6 @@ TWEAK_NAME = OqeePlus
|
|||||||
|
|
||||||
OqeePlus_FILES = Tweak.x
|
OqeePlus_FILES = Tweak.x
|
||||||
OqeePlus_CFLAGS = -fobjc-arc
|
OqeePlus_CFLAGS = -fobjc-arc
|
||||||
|
OqeePlus_LDFLAGS += $(THEOS)/vendor/lib/appletv/CydiaSubstrate.framework/CydiaSubstrate.tbd
|
||||||
|
|
||||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Package: xyz.nohamr.oqeeplus
|
Package: xyz.nohamr.oqeeplus
|
||||||
Name: Oqee+ (tvOS)
|
Name: Oqee+ (tvOS)
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Architecture: appletvos-arm64
|
Architecture: appletvos-arm64
|
||||||
Description: Oqee+ Ads blocker hook for tvOS
|
Description: Oqee+ Ads blocker hook for tvOS
|
||||||
Maintainer: NohamR
|
Maintainer: NohamR
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
TARGET = appletv:latest:18.3
|
TARGET = appletv:latest:18.3
|
||||||
ARCHS = arm64
|
ARCHS = arm64
|
||||||
INSTALL_TARGET_PROCESSES = mytf1
|
INSTALL_TARGET_PROCESSES = mytf1
|
||||||
THEOS_PACKAGE_SCHEME = rootless
|
|
||||||
|
|
||||||
include $(THEOS)/makefiles/common.mk
|
include $(THEOS)/makefiles/common.mk
|
||||||
|
|
||||||
@@ -9,5 +8,6 @@ TWEAK_NAME = TF1Plus
|
|||||||
|
|
||||||
TF1Plus_FILES = Tweak.x
|
TF1Plus_FILES = Tweak.x
|
||||||
TF1Plus_CFLAGS = -fobjc-arc
|
TF1Plus_CFLAGS = -fobjc-arc
|
||||||
|
TF1Plus_LDFLAGS += $(THEOS)/vendor/lib/appletv/CydiaSubstrate.framework/CydiaSubstrate.tbd
|
||||||
|
|
||||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Package: xyz.nohamr.tf1plus
|
Package: xyz.nohamr.tf1plus
|
||||||
Name: TF1+ (Rootless)
|
Name: TF1+ (Rootful)
|
||||||
Version: 1.0
|
Version: 1.1
|
||||||
Architecture: appletvos-arm64
|
Architecture: appletvos-arm64
|
||||||
Description: TF1+ Ads blocker hook
|
Description: TF1+ Ads blocker hook
|
||||||
Maintainer: NohamR
|
Maintainer: NohamR
|
||||||
|
|||||||
Reference in New Issue
Block a user