add -NoUpdate parameter
This commit is contained in:
parent
d6de2f9411
commit
56a27f6b9f
1 changed files with 10 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
Param(
|
||||
[string]$Java = 'java',
|
||||
[switch]$NoDeploy
|
||||
[switch]$NoDeploy,
|
||||
[switch]$NoUpdate
|
||||
)
|
||||
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
|
@ -299,6 +300,7 @@ function main {
|
|||
|
||||
# Update
|
||||
|
||||
if (-not $NoUpdate) {
|
||||
$updatedPatches = UpdateFromGithub -Repository "revanced/revanced-patches" -Config $config -AssetsFilter {$_.content_type -like "application/java-archive"} -OutFile ".\app\revanced-patches.jar"
|
||||
if ($updatedPatches) {
|
||||
Invoke-WebRequest "https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json" -OutFile ".\app\revanced-patches.json"
|
||||
|
@ -306,6 +308,7 @@ function main {
|
|||
|
||||
UpdateFromGithub -Repository "revanced/revanced-integrations" -Config $config -AssetsFilter {$_.content_type -like "application/*"} -OutFile ".\app\app-release-unsigned.apk" | Out-Null
|
||||
UpdateFromGithub -Repository "revanced/revanced-cli" -Config $config -AssetsFilter {$_.content_type -like "application/*"} -OutFile ".\app\revanced-cli.jar" | Out-Null
|
||||
}
|
||||
|
||||
if ($NoDeploy) {return}
|
||||
|
||||
|
|
Reference in a new issue