Merge pull request #42 from Syer10/getandroid

getAndroid.ps1: Silently continue if it cant remove the tmp folder
This commit is contained in:
Aria Moradi 2021-03-26 02:21:43 +04:30 committed by GitHub
commit 1a4a8af384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ if ($(Split-Path -Path (Get-Location) -Leaf) -eq "AndroidCompat" ) {
}
Write-Output "Getting required Android.jar..."
Remove-Item -Recurse -Force "tmp" | Out-Null
Remove-Item -Recurse -Force "tmp" -ErrorAction SilentlyContinue | Out-Null
New-Item -ItemType Directory -Force -Path "tmp" | Out-Null
$androidEncoded = (Invoke-WebRequest -Uri "https://android.googlesource.com/platform/prebuilts/sdk/+/3b8a524d25fa6c3d795afb1eece3f24870c60988/27/public/android.jar?format=TEXT").content