-
-
Save CypherpunkSamurai/691145f989c33eb6f8c5ab39eabb6dd2 to your computer and use it in GitHub Desktop.
download portable nox android emulator and debloat it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal enableDelayedExpansion | |
| set "unziper=7za.exe" | |
| if not exist "NoxPlayer" ( | |
| if not exist "!unziper!" call :downloadSevenZip | |
| call :downloadNoxPlayer | |
| ) | |
| call :downloadLawnChair | |
| exit /b | |
| :downloadSevenZip | |
| if not exist %unziper% ( | |
| curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0" ^ | |
| "https://community.chocolatey.org/7za.exe" ^ | |
| -o %unziper% | |
| ) | |
| :: download latest nox player | |
| :downloadNoxPlayer | |
| set exeName=NoxPlayerSetup.exe | |
| if not exist "%exeName%" ( | |
| echo "!exeName!" | |
| curl -L# "http://bignox.com/en/download/fullPackage?beta" -o "!exeName!" | |
| ) | |
| :: extract nox | |
| 7za x "%exeName%" "-oNoxPlayer\Nox" | |
| :: download latest lawnchair apk | |
| :downloadLawnChair | |
| @echo off | |
| for /F "delims=" %%J in ( | |
| 'curl.exe -Ls -o /dev/null -w %%{url_effective} ^ | |
| "https://github.com/LawnchairLauncher/lawnchair/releases/latest" 2^>nul | |
| ') do ( | |
| set latestRelaseUrl=%%J | |
| ) | |
| for %%a in (%latestRelaseUrl:/= %) do set version=%%a | |
| curl -L# "https://github.com/LawnchairLauncher/lawnchair/releases/download/%version%/Lawnchair-%version%.apk" -o "lawnchair_%version%.apk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment