Add more log output

This commit is contained in:
Wroclaw 2022-07-04 02:38:26 +02:00
parent dc70980cb3
commit bd5d6d666b

View file

@ -146,16 +146,19 @@ function main {
Invoke-WebRequest $patchesRelease.assets[1].browser_download_url -OutFile ".\app\revanced-patches.jar" Invoke-WebRequest $patchesRelease.assets[1].browser_download_url -OutFile ".\app\revanced-patches.jar"
$config.patches = $gitHubVersions.patches $config.patches = $gitHubVersions.patches
} }
else {Write-Output "Patches up to date $($config.patches)"}
if ($install[1]) { if ($install[1]) {
Write-Output "Downloading Integrations ($($config.integrations) -> $($gitHubVersions.integrations))" Write-Output "Downloading Integrations ($($config.integrations) -> $($gitHubVersions.integrations))"
Invoke-WebRequest $integrationsRelease.assets[0].browser_download_url -OutFile ".\app\app-release-unsigned.apk" Invoke-WebRequest $integrationsRelease.assets[0].browser_download_url -OutFile ".\app\app-release-unsigned.apk"
$config.integrations = $gitHubVersions.integrations $config.integrations = $gitHubVersions.integrations
} }
else {Write-Output "Integrations up to date $($config.integrations)"}
if ($install[2]) { if ($install[2]) {
Write-Output "Downloading cli ($($config.cli) -> $($gitHubVersions.cli))" Write-Output "Downloading cli ($($config.cli) -> $($gitHubVersions.cli))"
Invoke-WebRequest $cliRelease.assets[0].browser_download_url -OutFile ".\app\revanced-cli.jar" Invoke-WebRequest $cliRelease.assets[0].browser_download_url -OutFile ".\app\revanced-cli.jar"
$config.cli = $gitHubVersions.cli $config.cli = $gitHubVersions.cli
} }
else {Write-Output "cli up to date! $($config.cli)"}
$config.save(".\config.json") $config.save(".\config.json")
} }
@ -244,8 +247,10 @@ function main {
foreach ($i in $excludedIntegrations) { foreach ($i in $excludedIntegrations) {
$patcherArgs += "-e" $patcherArgs += "-e"
$patcherArgs += $i $patcherArgs += $i
Write-Output "Excluded: $i"
} }
Write-Output "Logs below are from the cli"
execJava $patcherArgs execJava $patcherArgs
} }