add -NoDeploy flag

This commit is contained in:
Wroclaw 2022-07-15 23:47:24 +02:00
parent 75bff43232
commit 69e2602e28
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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