Update Build.ps1

This commit is contained in:
Dmitry Nefedov
2022-09-03 18:32:16 +03:00
committed by GitHub
parent 7408cac371
commit 969d6cc415

View File

@@ -112,15 +112,15 @@ $Parameters = @{
}
Invoke-RestMethod @Parameters
# https://github.com/microg/GmsCore
# https://github.com/TeamVanced/VancedMicroG
$Parameters = @{
Uri = "https://api.github.com/repos/microg/GmsCore/releases/latest"
Uri = "https://api.github.com/repos/TeamVanced/VancedMicroG/releases/latest"
UseBasicParsing = $true
Verbose = $true
}
$URL = ((Invoke-RestMethod @Parameters).assets | Where-Object -FilterScript {$_.browser_download_url -notmatch "asc"}).browser_download_url
$Tag = (Invoke-RestMethod @Parameters).tag_name
$Parameters = @{
Uri = $URL
Uri = "https://github.com/TeamVanced/VancedMicroG/releases/download/$Tag/microg.apk"
Outfile = "$DownloadsFolder\ReVanced\microg.apk"
UseBasicParsing = $true
Verbose = $true