mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-03-11 13:05:33 +00:00
* Dynamic versioning, remove duplicate features, fix build references
- Replace hardcoded YTLITE_VERSION=5.0.1 with dynamic GitHub API fetch in Makefile
- Add fallback error if API fetch fails in Makefile
- Update buildapp.yml to use dynamic version fetching with jq
- Replace all hardcoded 5.0.1 references with env vars in buildapp.yml
- Add jq to workflow dependencies
- Remove duplicate tweaks from INJECT_DYLIBS and SUBPROJECTS (iSponsorBlock,
YTHoldForSpeed, YouLoop, YouMute, YouQuality, YouSpeed)
- Remove git submodules for removed tweaks
- Remove SponsorBlock button hiding code from YTLitePlus.xm
- Remove iSponsorBlock first-run setup from YTLitePlus.xm
- Remove SponsorBlockSettingsController/ViewController hooks from Themes.xm
- Remove hideSponsorBlockButton setting from Settings.xm
- Update iSponsorBlock text references in Settings.xm
- Remove SponsorBlock class declarations from YTLitePlus.h
- Remove duplicate overlay keys from SettingsKeys.h
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
* All changes verified and complete
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
* Remove accidentally committed codeql artifact, add to .gitignore
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
* Update build workflow and remove duplicate features from README
Workflow changes:
- Bump actions/cache from v4.2.0 to v5.0.2
- Bump actions/checkout from v4.2.2 to v6.0.1
- Bump softprops/action-gh-release from v2 to v2.5.0
- Update theos ref to latest commit (13c2237)
- Add THEOS env to Fix Compiling step
- Update default SDK version from 17.5 to 18.6
- Change SDK repo from aricloverALT to aricloverEXTRA
- Remove Checkout Main step (not needed for building)
- Remove unnecessary ${{ github.workspace }} paths
- Change YouTube extension repo from CokePokes to BillyCurtis
Other changes:
- Update Makefile default SDK references to 18.6
- Update .gitmodules Extensions URL
- Remove duplicate features from README (YouMute, iSponsorBlock,
YTSpeed, YTHoldForSpeed, YouQuality) and fix numbering
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
* Add back repo checkout step without path prefix
The checkout step is still needed to get the source code,
but without path: main so it checks out to workspace root.
This is consistent with the removal of all main/ path prefixes.
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Balackburn <93828569+Balackburn@users.noreply.github.com>
79 lines
4 KiB
Makefile
79 lines
4 KiB
Makefile
export TARGET = iphone:clang:18.6:14.0
|
|
export SDK_PATH = $(THEOS)/sdks/iPhoneOS18.6.sdk/
|
|
export SYSROOT = $(SDK_PATH)
|
|
export ARCHS = arm64
|
|
|
|
export libcolorpicker_ARCHS = arm64
|
|
export libFLEX_ARCHS = arm64
|
|
export Alderis_XCODEOPTS = LD_DYLIB_INSTALL_NAME=@rpath/Alderis.framework/Alderis
|
|
export Alderis_XCODEFLAGS = DYLIB_INSTALL_NAME_BASE=/Library/Frameworks BUILD_LIBRARY_FOR_DISTRIBUTION=YES ARCHS="$(ARCHS)"
|
|
export libcolorpicker_LDFLAGS = -F$(TARGET_PRIVATE_FRAMEWORK_PATH) -install_name @rpath/libcolorpicker.dylib
|
|
export ADDITIONAL_CFLAGS = -I$(THEOS_PROJECT_DIR)/Tweaks/RemoteLog -I$(THEOS_PROJECT_DIR)/Tweaks # Allow YouTubeHeader to be accessible using #include <...>
|
|
|
|
ifneq ($(JAILBROKEN),1)
|
|
export DEBUGFLAG = -ggdb -Wno-unused-command-line-argument -L$(THEOS_OBJ_DIR) -F$(_THEOS_LOCAL_DATA_DIR)/$(THEOS_OBJ_DIR_NAME)/install/Library/Frameworks
|
|
MODULES = jailed
|
|
endif
|
|
PACKAGE_NAME = YTLitePlus
|
|
PACKAGE_VERSION = X.X.X-X.X
|
|
|
|
INSTALL_TARGET_PROCESSES = YouTube
|
|
TWEAK_NAME = YTLitePlus
|
|
DISPLAY_NAME = YouTube
|
|
BUNDLE_ID = com.google.ios.youtube
|
|
|
|
YTLitePlus_FILES = YTLitePlus.xm $(shell find Source -name '*.xm' -o -name '*.x' -o -name '*.m')
|
|
YTLitePlus_FRAMEWORKS = UIKit Security
|
|
YTLitePlus_INJECT_DYLIBS = Tweaks/YTLite/var/jb/Library/MobileSubstrate/DynamicLibraries/YTLite.dylib .theos/obj/libFLEX.dylib .theos/obj/YTUHD.dylib .theos/obj/YouPiP.dylib .theos/obj/YouTubeDislikesReturn.dylib .theos/obj/YTABConfig.dylib .theos/obj/DontEatMyContent.dylib .theos/obj/YTVideoOverlay.dylib .theos/obj/YouTimeStamp.dylib .theos/obj/YouGroupSettings.dylib
|
|
YTLitePlus_EMBED_LIBRARIES = $(THEOS_OBJ_DIR)/libcolorpicker.dylib
|
|
YTLitePlus_EMBED_FRAMEWORKS = $(_THEOS_LOCAL_DATA_DIR)/$(THEOS_OBJ_DIR_NAME)/install_Alderis.xcarchive/Products/var/jb/Library/Frameworks/Alderis.framework
|
|
YTLitePlus_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unused-but-set-variable -DTWEAK_VERSION=\"$(PACKAGE_VERSION)\"
|
|
YTLitePlus_EMBED_BUNDLES = $(wildcard Bundles/*.bundle)
|
|
YTLitePlus_EMBED_EXTENSIONS = $(wildcard Extensions/*.appex)
|
|
YTLitePlus_IPA = ./tmp/Payload/YouTube.app
|
|
YTLitePlus_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unsupported-availability-guard -Wno-unused-but-set-variable -DTWEAK_VERSION=$(PACKAGE_VERSION) $(EXTRA_CFLAGS)
|
|
YTLitePlus_USE_FISHHOOK = 0
|
|
|
|
include $(THEOS)/makefiles/common.mk
|
|
ifneq ($(JAILBROKEN),1)
|
|
SUBPROJECTS += Tweaks/Alderis Tweaks/FLEXing/libflex Tweaks/YTUHD Tweaks/YouPiP Tweaks/Return-YouTube-Dislikes Tweaks/YTABConfig Tweaks/DontEatMyContent Tweaks/YTVideoOverlay Tweaks/YouTimeStamp Tweaks/YouGroupSettings
|
|
include $(THEOS_MAKE_PATH)/aggregate.mk
|
|
endif
|
|
include $(THEOS_MAKE_PATH)/tweak.mk
|
|
|
|
FINALPACKAGE = 1
|
|
REMOVE_EXTENSIONS = 1
|
|
CODESIGN_IPA = 0
|
|
|
|
YTLITE_PATH = Tweaks/YTLite
|
|
YTLITE_VERSION := $(shell curl -s https://api.github.com/repos/dayanch96/YTLite/releases/latest | grep '"tag_name"' | sed 's/.*"v\(.*\)".*/\1/')
|
|
ifeq ($(YTLITE_VERSION),)
|
|
$(error Failed to fetch latest YTLite version from GitHub API)
|
|
endif
|
|
YTLITE_DEB = $(YTLITE_PATH)/com.dvntm.ytlite_$(YTLITE_VERSION)_iphoneos-arm64.deb
|
|
YTLITE_DYLIB = $(YTLITE_PATH)/var/jb/Library/MobileSubstrate/DynamicLibraries/YTLite.dylib
|
|
YTLITE_BUNDLE = $(YTLITE_PATH)/var/jb/Library/Application\ Support/YTLite.bundle
|
|
|
|
internal-clean::
|
|
@rm -rf $(YTLITE_PATH)/*
|
|
|
|
ifneq ($(JAILBROKEN),1)
|
|
before-all::
|
|
@if [[ ! -f $(YTLITE_DEB) ]]; then \
|
|
rm -rf $(YTLITE_PATH)/*; \
|
|
$(PRINT_FORMAT_BLUE) "Downloading YTLite"; \
|
|
fi
|
|
before-all::
|
|
@if [[ ! -f $(YTLITE_DEB) ]]; then \
|
|
curl -s -L "https://github.com/dayanch96/YTLite/releases/download/v$(YTLITE_VERSION)/com.dvntm.ytlite_$(YTLITE_VERSION)_iphoneos-arm64.deb" -o $(YTLITE_DEB); \
|
|
fi; \
|
|
if [[ ! -f $(YTLITE_DYLIB) || ! -d $(YTLITE_BUNDLE) ]]; then \
|
|
tar -xf $(YTLITE_DEB) -C $(YTLITE_PATH); tar -xf $(YTLITE_PATH)/data.tar* -C $(YTLITE_PATH); \
|
|
if [[ ! -f $(YTLITE_DYLIB) || ! -d $(YTLITE_BUNDLE) ]]; then \
|
|
$(PRINT_FORMAT_ERROR) "Failed to extract YTLite"; exit 1; \
|
|
fi; \
|
|
fi;
|
|
else
|
|
before-package::
|
|
@mkdir -p $(THEOS_STAGING_DIR)/Library/Application\ Support; cp -r lang/YTLitePlus.bundle $(THEOS_STAGING_DIR)/Library/Application\ Support/
|
|
endif
|