Skip to content

Commit

Permalink
Merge branch 'YTLitePlus:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
quoctrile8 authored Jul 7, 2024
2 parents bc50956 + 1cb5110 commit 6b95beb
Show file tree
Hide file tree
Showing 19 changed files with 470 additions and 642 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/buildapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@ name: Build and Release YTLitePlus
on:
workflow_dispatch:
inputs:
sdk_version:
description: "iOS SDK Version"
default: "16.5"
required: true
type: string
decrypted_youtube_url:
description: "The direct URL to the decrypted YouTube ipa"
description: "Direct URL of the decrypted YouTube ipa"
default: ""
required: true
type: string
bundle_id:
description: "Modify the bundle ID. Not recommended"
description: "Modify the bundle ID"
default: "com.google.ios.youtube"
required: true
type: string
app_name:
description: "Modify the name of the app on the Home Screen. Not recommended"
description: "Modify the app name"
default: "YouTube"
required: true
type: string
Expand All @@ -26,9 +31,19 @@ on:
default: ""
required: false
type: string
upload_artifact:
description: "Upload ipa as artifact"
default: true
required: false
type: boolean
catbox_upload:
description: "Upload ipa to Catbox.moe"
default: false
required: false
type: boolean
create_release:
description: "Create a draft release"
default: true
default: false
required: false
type: boolean

Expand Down Expand Up @@ -62,21 +77,22 @@ jobs:
path: theos
submodules: recursive

- name: Caching
- name: SDK Caching
id: SDK
uses: actions/[email protected]
env:
cache-name: iOS-16.5-SDK
cache-name: iOS-${{ inputs.sdk_version }}-SDK
with:
path: theos/sdks/
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}

- name: Download iOS 16.5 SDK
- name: Download iOS SDK
if: steps.SDK.outputs.cache-hit != 'true'
run: |
git clone -n --depth=1 --filter=tree:0 https://github.com/theos/sdks/
cd sdks
git sparse-checkout set --no-cone iPhoneOS16.5.sdk
git sparse-checkout set --no-cone iPhoneOS${{ inputs.sdk_version }}.sdk
git checkout
mv *.sdk $THEOS/sdks
env:
Expand Down Expand Up @@ -124,6 +140,7 @@ jobs:
sed -i '' "12s#.*#BUNDLE_ID = ${{ env.BUNDLE_ID }}#g" Makefile
sed -i '' "11s#.*#DISPLAY_NAME = ${{ env.APP_NAME }}#g" Makefile
sed -i '' "s/^PACKAGE_VERSION.*$/PACKAGE_VERSION = ${{ env.YT_VERSION }}-${{ env.YTLITE_VERSION }}/" Makefile
sed -i '' "1s#.*#export TARGET = iphone:clang:${{ inputs.sdk_version }}:15.0#g" Makefile
make package FINALPACKAGE=1
(mv "packages/$(ls -t packages | head -n1)" "packages/YTLitePlus_${{ env.YT_VERSION }}_${{ env.YTLITE_VERSION }}.ipa")
echo "package=$(ls -t packages | head -n1)" >>$GITHUB_OUTPUT
Expand All @@ -135,13 +152,15 @@ jobs:
APP_NAME: ${{ inputs.app_name }}

- name: Upload Artifact
if: ${{ inputs.upload_artifact }}
uses: actions/[email protected]
with:
name: YTLitePlus_${{ env.YT_VERSION }}_${{ env.YTLITE_VERSION }}
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
if-no-files-found: error

- name: Upload Artifact to Catbox
if: ${{ inputs.catbox_upload }}
run: |
RESPONSE=$(curl -F "reqtype=fileupload" -F "fileToUpload=@${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}" https://catbox.moe/user/api.php)
CATBOX_URL=$(echo $RESPONSE | grep -o -E 'https://files.catbox.moe/[^"]*')
Expand All @@ -150,25 +169,27 @@ jobs:
echo "CATBOX_FILE=$CATBOX_FILE" >> $GITHUB_ENV
- name: Prepare Release Notes
if: ${{ inputs.create_release }}
run: |
export TODAY=$(date '+%Y-%m-%d')
sed "s/%ytliteplus_version%/${{ env.YTLITE_VERSION }}/g; s/%youtube_version%/${{ env.YT_VERSION }}/g; s/%catbox_url%/${{ env.CATBOX_FILE }}/g; s/%date%/$TODAY/g" \
main/.github/RELEASE_TEMPLATE/Release.md > ${{ github.workspace }}/release_notes.md
- name: Create Release
if: ${{ inputs.create_release }}
id: create_release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT: ${{ inputs.create_release }}
with:
tag_name: v${{ env.YT_VERSION }}-${{ env.YTLITE_VERSION }}
name: v${{ env.YT_VERSION }}-${{ env.YTLITE_VERSION }} - YTLitePlus
files: main/packages/*.ipa
draft: ${{ env.DRAFT }}
draft: true
body_path: ${{ github.workspace }}/release_notes.md

- name: Update Altstore Source with latest release
if: ${{ inputs.create_release }}
run: |
curl --location --request POST 'https://api.github.com/repos/Balackburn/YTLitePlusAltstore/dispatches' \
--header 'Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}' \
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/delete-workflow-runs.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
name: Delete Workflow Runs
name: Delete old workflow runs
on:
workflow_dispatch:
inputs:
days:
description: 'Number of days.'
description: 'Days-worth of runs to keep for each workflow'
required: true
default: 0
default: '7' # default value is "30"
minimum_runs:
description: 'The minimum runs to keep for each workflow.'
description: 'Minimum runs to keep for each workflow'
required: true
default: 0
default: '5' # default value is "6"
delete_workflow_pattern:
description: 'The name or filename of the workflow. if not set then it will target all workflows.'
description: 'Name or filename of the workflow (if not set, all workflows are targeted)'
required: false
default: 'Build and Release uYouEnhanced' # default value is ""
delete_workflow_by_state_pattern:
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
required: true
default: "All"
default: "ALL"
type: choice
options:
- "All"
- "ALL"
- active
- deleted
- disabled_inactivity
- disabled_manually
delete_run_by_conclusion_pattern:
description: 'Remove workflow by conclusion: action_required, cancelled, failure, skipped, success'
description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success'
required: true
default: "All"
default: "ALL"
type: choice
options:
- "All"
- "ALL"
- "Unsuccessful: action_required,cancelled,failure,skipped"
- action_required
- cancelled
- failure
- skipped
- success
dry_run:
description: 'Only log actions, do not perform any delete operations.'
description: 'Logs simulated changes, no deletions are performed'
required: false

jobs:
del_runs:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
Expand All @@ -55,5 +58,10 @@ jobs:
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
delete_run_by_conclusion_pattern: ${{ github.event.inputs.delete_run_by_conclusion_pattern }}
delete_run_by_conclusion_pattern: >-
${{
startsWith(github.event.inputs.delete_run_by_conclusion_pattern, 'Unsuccessful:')
&& 'action_required,cancelled,failure,skipped'
|| github.event.inputs.delete_run_by_conclusion_pattern
}}
dry_run: ${{ github.event.inputs.dry_run }}
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@

10. **YTNoTracking**: An iOS YouTube Tweak that disables Tracking Parameters in the YouTube App.

11. **YTUnShorts**: Remove Shorts from YouTube app's feed.

12. **YTNoCheckLocalNetWor**k: Blocks the Local Network permission popup in YouTube.

13. **BigYTMiniPlayer**: Jailbreak tweak that makes the miniplayer in youtube easier to see.
Expand All @@ -188,8 +186,6 @@

21. **LowContrastMode**: Makes the YouTube Interface Low Contrast as possible to make it easier on the eyes.

22. **YTNoSuggestedVideo**: Removes the suggested video popup when finishing a video.

# AltStore

<a href="https://tinyurl.com/YTLiteAltstore"><img src="https://raw.githubusercontent.com/YTLitePlus/Assets/main/Github/Buttons/Altstore/Altstore.png" width="200"></a>
Expand Down
Loading

0 comments on commit 6b95beb

Please sign in to comment.