Compare commits
2 commits
main
...
dylib-buil
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
483b294d4f | ||
|
|
d147b294ff |
2 changed files with 77 additions and 1 deletions
74
.github/workflows/buildapp.yml
vendored
74
.github/workflows/buildapp.yml
vendored
|
|
@ -46,6 +46,79 @@ on:
|
|||
default: false
|
||||
required: false
|
||||
type: boolean
|
||||
# dylib selection options - @arichornloverALT
|
||||
isponsorblock_dylib:
|
||||
description: "Include iSponsorBlock.dylib"
|
||||
default: "off"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
ytubehd_dylib:
|
||||
description: "Include YTUHD.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
youpip_dylib:
|
||||
description: "Include YouPiP.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
returndislikes_dylib:
|
||||
description: "Include Return-YouTube-Dislikes.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
ytabconfig_dylib:
|
||||
description: "Include YTABConfig.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
youmute_dylib:
|
||||
description: "Include YouMute.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
donteatmycontent_dylib:
|
||||
description: "Include DontEatMyContent.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
ytholdforspeed_dylib:
|
||||
description: "Include YTHoldForSpeed.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
ytvideooverlay_dylib:
|
||||
description: "Include YTVideoOverlay.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
youquality_dylib:
|
||||
description: "Include YouQuality.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
youtimestamp_dylib:
|
||||
description: "Include YouTimeStamp.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
youloop_dylib:
|
||||
description: "Include YouLoop.dylib"
|
||||
default: "on"
|
||||
required: false
|
||||
type: choice
|
||||
options: [on, off]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
|
@ -166,6 +239,7 @@ jobs:
|
|||
sed -i '' "s/^DISPLAY_NAME.*$/DISPLAY_NAME = ${{ env.APP_NAME }}/" Makefile
|
||||
sed -i '' "s/^PACKAGE_VERSION.*$/PACKAGE_VERSION = ${{ env.YT_VERSION }}-${{ env.YTLITE_VERSION }}/" Makefile
|
||||
sed -i '' "s/^export TARGET.*$/export TARGET = iphone:clang:${{ inputs.sdk_version }}:14.0/" Makefile
|
||||
sed -i '' "s/^YTLitePlus_INJECT_DYLIBS.*$/YTLitePlus_INJECT_DYLIBS = Tweaks\/YTLite\/var\/jb\/Library\/MobileSubstrate\/DynamicLibraries\/YTLite.dylib .theos\/obj\/libcolorpicker.dylib$(if [[ ${{ inputs.isponsorblock_dylib }} == "on" ]]; then echo " .theos\/obj\/iSponsorBlock.dylib"; fi)$(if [[ ${{ inputs.ytubehd_dylib }} == "on" ]]; then echo " .theos\/obj\/YTUHD.dylib"; fi)$(if [[ ${{ inputs.youpip_dylib }} == "on" ]]; then echo " .theos\/obj\/YouPiP.dylib"; fi)$(if [[ ${{ inputs.returndislikes_dylib }} == "on" ]]; then echo " .theos\/obj\/YouTubeDislikesReturn.dylib"; fi)$(if [[ ${{ inputs.ytabconfig_dylib }} == "on" ]]; then echo " .theos\/obj\/YTABConfig.dylib"; fi)$(if [[ ${{ inputs.youmute_dylib }} == "on" ]]; then echo " .theos\/obj\/YouMute.dylib"; fi)$(if [[ ${{ inputs.donteatmycontent_dylib }} == "on" ]]; then echo " .theos\/obj\/DontEatMyContent.dylib"; fi)$(if [[ ${{ inputs.ytholdforspeed_dylib }} == "on" ]]; then echo " .theos\/obj\/YTHoldForSpeed.dylib"; fi)$(if [[ ${{ inputs.ytvideooverlay_dylib }} == "on" ]]; then echo " .theos\/obj\/YTVideoOverlay.dylib"; fi)$(if [[ ${{ inputs.youquality_dylib }} == "on" ]]; then echo " .theos\/obj\/YouQuality.dylib"; fi)$(if [[ ${{ inputs.youtimestamp_dylib }} == "on" ]]; then echo " .theos\/obj\/YouTimeStamp.dylib"; fi)$(if [[ ${{ inputs.youloop_dylib }} == "on" ]]; then echo " .theos\/obj\/YouLoop.dylib"; fi)" Makefile
|
||||
# Build the package
|
||||
make package
|
||||
# Rename the package based on the version
|
||||
|
|
|
|||
|
|
@ -123,7 +123,9 @@ static const NSInteger YTLiteSection = 789;
|
|||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
if (IS_ENABLED(@"switchCopyandPasteFunctionality_enabled")) {
|
||||
// Export Settings functionality
|
||||
NSURL *tempFileURL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"exported_settings.txt"]];
|
||||
NSString *dateString = [self getCurrentDateAsString];
|
||||
NSString *fileName = [NSString stringWithFormat:@"YTLitePlusSettings_%@", dateString];
|
||||
NSURL *tempFileURL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[fileName stringByAppendingString:@".txt"]]];
|
||||
NSMutableString *settingsString = [NSMutableString string];
|
||||
for (NSString *key in copyKeys) {
|
||||
id value = [[NSUserDefaults standardUserDefaults] objectForKey:key];
|
||||
|
|
|
|||
Loading…
Reference in a new issue