From 69e2602e283d1e5aa92c54a3a8f14ebe498b003a Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Fri, 15 Jul 2022 23:47:24 +0200 Subject: [PATCH] add -NoDeploy flag --- README.md | 2 ++ revanced.ps1 | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bacb4e0..383cad2 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,5 @@ After running, script will download latest required patches and jars in order to It will prompt user which patches to exclude and to which device deploy (if multiple connected) Scripts saves in `.\config.json` latest known versions (which are 100% downloaded if not deleted) and excluded patches for future use. + +Use `-NoDeploy` to only check and download updates diff --git a/revanced.ps1 b/revanced.ps1 index b1e7228..46e8b5d 100644 --- a/revanced.ps1 +++ b/revanced.ps1 @@ -1,5 +1,6 @@ Param( - [string]$Java = 'java' + [string]$Java = 'java', + [switch]$NoDeploy ) Add-Type -AssemblyName System.Windows.Forms @@ -160,6 +161,8 @@ function main { Write-Output "Couldn't get newest files, using locals" } + if ($NoDeploy) {return} + # Select Youtube app $apks = (Get-ChildItem *.apk).Name