Skip to content

Commit

Permalink
Feat: twitter builds
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolnsX committed Jun 4, 2024
1 parent d5094a2 commit 679d028
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Run Revanced Youtube Music
run: sh revanced youtube-music

- name: Run Revanced Twitter
run: sh revanced twitter

- name: Check for APK files
id: check_apks
run: |
Expand Down
8 changes: 7 additions & 1 deletion revanced
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ case $app in
exclude_patch_list=""
out="yt-music-revanced-$version.apk"
;;
twitter)
arch="universal"
[ -z "$2" ] && version=$(curl -s "$apk_provider_url/apk/x-corp/$app/" -A "$agent" | sed -nE 's|.*x-corp/twitter/twitter-(.*-release-[0-9])-release/".*|\1|p' | head -1) || version=$2
exclude_patch_list="hide-view-count,sanitize-sharing-links,open-links-with-app-chooser"
out="twitter-revanced-$version.apk"
;;
*)
info "Wrong Package Name, please pass either 'youtube' or 'youtube-music'" "31"
info "Wrong Package Name, please pass either 'youtube','youtube-music' or 'twitter'" "31"
exit 1
;;
esac
Expand Down
1 change: 1 addition & 0 deletions track
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
youtube 19-16-39
youtube-music 7-04-51
twitter

0 comments on commit 679d028

Please sign in to comment.