Add files via upload

This commit is contained in:
Dmitry Nefedov
2022-09-23 00:39:58 +03:00
committed by GitHub
parent 87290740a5
commit b43fec04b2
6 changed files with 129 additions and 18 deletions

17
Scripts/ReVanced_CLI.ps1 Normal file
View File

@@ -0,0 +1,17 @@
# https://github.com/revanced/revanced-cli
$Parameters = @{
Uri = "https://api.github.com/repos/revanced/revanced-cli/releases/latest"
UseBasicParsing = $true
Verbose = $true
}
$CLIvtag = (Invoke-RestMethod @Parameters).tag_name
$CLItag = $CLIvtag.replace("v", "")
$Parameters = @{
Uri = "https://github.com/revanced/revanced-cli/releases/download/$CLIvtag/revanced-cli-$CLItag-all.jar"
Outfile = "$PSScriptRoot\revanced-cli.jar"
UseBasicParsing = $true
Verbose = $true
}
Invoke-RestMethod @Parameters
echo "CLIvtag=$CLIvtag" >> $env:GITHUB_ENV