Skip to content

Instantly share code, notes, and snippets.

@CypherpunkSamurai
Forked from thewh1teagle/portableNoxPlayer.bat
Created September 12, 2025 02:41
Show Gist options
  • Select an option

  • Save CypherpunkSamurai/691145f989c33eb6f8c5ab39eabb6dd2 to your computer and use it in GitHub Desktop.

Select an option

Save CypherpunkSamurai/691145f989c33eb6f8c5ab39eabb6dd2 to your computer and use it in GitHub Desktop.

Revisions

  1. @thewh1teagle thewh1teagle created this gist Jul 25, 2021.
    41 changes: 41 additions & 0 deletions portableNoxPlayer.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    @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"