Files
ReVanced_Builder_Spotify/Scripts/MicroG.ps1
2025-05-18 23:18:19 +07:00

25 lines
699 B
PowerShell

# https://github.com/ReVanced/GmsCore
$Parameters = @{
Uri = "https://api.github.com/repos/ReVanced/GmsCore/releases/latest"
UseBasicParsing = $true
Verbose = $true
}
$apiResult = Invoke-RestMethod @Parameters
$TAG = $apiResult.tag_name
foreach($url in $apiResult.assets) {
if ($url.name.Contains("-hw-")) {
$url.name = "microg-hw.apk"
} else {
$url.name = "microg.apk"
}
$Parameters = @{
Uri = $url.browser_download_url
Outfile = "Temp\$($url.name)"
UseBasicParsing = $true
Verbose = $true
}
Invoke-RestMethod @Parameters
}
echo "MicroGTag=$TAG" >> $env:GITHUB_ENV