Skip to content

Commit

Permalink
Deletion of files on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dng-nguyn committed Dec 31, 2023
1 parent 01482a8 commit 9973daf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash
### PLEASE LOOK THROUGH THE SCRIPT BEFORE EXECUTING!!! ###
# Remove old files if present:
rm patch.jar cli.jar integrations.apk download.json yt.apk
rm -d downloads
# remove ReVanced cache
rm -rd revanced-resource-cache
# Download patches, integrations and cli
echo "Downloading files..."
curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O patch.jar
curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O cli.jar
curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | grep "browser_download_url.*.apk" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O integrations.apk
curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -i - -O patch.jar
curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | grep "browser_download_url.*.jar" | cut -d : -f 2,3 | tr -d \" | wget -i - -O cli.jar
curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | grep "browser_download_url.*.apk" | cut -d : -f 2,3 | tr -d \" | wget -i - -O integrations.apk

# Command to get the version
echo "Getting version..."
Expand Down

1 comment on commit 9973daf

@dng-nguyn
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and more verbose outputs

Please sign in to comment.