mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update: microg downloading; workflow; readme.md
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/Build.yml
vendored
2
.github/workflows/Build.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
||||
run: |
|
||||
Get-ChildItem Temp\Temp -Recurse -Force
|
||||
$Parameters = @{
|
||||
Path = "Temp\revanced.apk", "Temp\microg.apk"
|
||||
Path = "Temp\revanced.apk", "Temp\microg.apk", "Temp\microg-hw.apk"
|
||||
DestinationPath = "ReVanced.zip"
|
||||
CompressionLevel = "Fastest"
|
||||
Force = $true
|
||||
|
||||
17
Build.ps1
17
Build.ps1
@@ -112,14 +112,21 @@ $Parameters = @{
|
||||
UseBasicParsing = $true
|
||||
Verbose = $true
|
||||
}
|
||||
$URL = (Invoke-RestMethod @Parameters).assets.browser_download_url
|
||||
$Parameters = @{
|
||||
Uri = $URL
|
||||
Outfile = "$WorkingFolder\ReVanced\microg.apk"
|
||||
$URL = (Invoke-RestMethod @Parameters).assets
|
||||
foreach($url in $URL) {
|
||||
if ($url.name.Contains("-hw-")) {
|
||||
$url.name = "microg-hw.apk"
|
||||
} else {
|
||||
$url.name = "microg.apk"
|
||||
}
|
||||
$Parameters = @{
|
||||
Uri = $url.browser_download_url
|
||||
Outfile = "$WorkingFolder\ReVanced\$($url.name)"
|
||||
UseBasicParsing = $true
|
||||
Verbose = $true
|
||||
}
|
||||
Invoke-RestMethod @Parameters
|
||||
}
|
||||
Invoke-RestMethod @Parameters
|
||||
|
||||
# Sometimes older version of zulu-jdk causes conflict, so remove older version before proceeding.
|
||||
if (Test-Path -Path "$WorkingFolder\ReVanced\jdk")
|
||||
|
||||
@@ -30,9 +30,7 @@ Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflo
|
||||
## Requirements if you compile locally
|
||||
|
||||
* Windows 10 x64 or Windows 11
|
||||
* Windows PowerShell 5.1
|
||||
* PowerShell 7 won't work due to it doesn't contain Trident HTML parser, so I have to use a 3rd party parser [AngleSharp](https://github.com/AngleSharp/AngleSharp);
|
||||
* If you still want it, [get](https://github.com/JDM170/ReVanced_Builder/blob/main/.github/workflows/Build.yml) code from Actions (it's run in PowerShell 7).
|
||||
* Windows PowerShell 5.1/7
|
||||
|
||||
## Links
|
||||
|
||||
|
||||
@@ -5,14 +5,20 @@ $Parameters = @{
|
||||
Verbose = $true
|
||||
}
|
||||
$apiResult = Invoke-RestMethod @Parameters
|
||||
$URL = $apiResult.assets.browser_download_url
|
||||
$TAG = $apiResult.tag_name
|
||||
$Parameters = @{
|
||||
Uri = $URL
|
||||
Outfile = "Temp\microg.apk"
|
||||
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
|
||||
}
|
||||
Invoke-RestMethod @Parameters
|
||||
|
||||
echo "MicroGTag=$TAG" >> $env:GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user