Skip to content

Commit

Permalink
Feat: new filename style
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolnsX committed Jun 4, 2024
1 parent 395b5cc commit d54c5fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: *.apk
file: revanced-*.apk
tag: ${{ steps.check_apks.outputs.RELEASE_TAG }}
overwrite: true
file_glob: true
Expand Down
4 changes: 1 addition & 3 deletions revanced
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,16 @@ case $app in
arch="universal"
[ -z "$2" ] && version=$(curl -s "https://api.revanced.app/v2/patches/latest" | sed -nE 's|.*youtube","versions":\[[0-9\.",]*,"([^\}]*)"\].*|\1|p' | tr '.' '-') || version=$2
exclude_patch_list="always-repeat,disable-auto-captions,disable-zoom-haptics,enable-debugging,downloads,hide-autoplay-button,hide-captions-button,hide-cast-button,hide-floating-microphone-button,hide-layout-components,hide-player-buttons,custom-player-overlay-opacity,hide-seekbar,hide-timestamp,hide-video-action-buttons,navigation-buttons,player-flyout-menu,remove-player-controls-background,spoof-app-version,swipe-controls"
out="yt-revanced-$version.apk"
;;
youtube-music)
arch="arm64-v8a"
[ -z "$2" ] && version=$(curl -s "https://api.revanced.app/v2/patches/latest" | sed -nE 's|.*youtube.music","versions":\[[0-9\.",]*,"([^\}]*)"\].*|\1|p' | tr '.' '-') || version=$2
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','youtube-music' or 'twitter'" "31"
Expand All @@ -62,6 +59,7 @@ case $app in
esac

grep -q "$version" "$track_file" && info "No New Updates for $app." && exit 0
out="revanced-$app-$version.apk" # output filename

#pre-requisite
if [ ! -f "$tmp_dir/$rv_cli.aria2" ] && [ ! -f "$tmp_dir/$rv_patch.aria2" ] && [ ! -f "$tmp_dir/$rv_inte.aria2" ] && [ -f "$tmp_dir/$rv_cli" ] && [ -f "$tmp_dir/$rv_patch" ] && [ -f "$tmp_dir/$rv_inte" ]; then
Expand Down
6 changes: 3 additions & 3 deletions track
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
youtube 19-16-39
youtube-music 7-03-52
twitter 10-43-0-release-0
youtube
youtube-music
twitter

0 comments on commit d54c5fa

Please sign in to comment.