Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ if exist "%APPDATA%\nitro" (
rmdir /S /Q "%APPDATA%\nitro"
)


:: Parse arguments
set "VERSION=latest"
set "GPU=false"
set "AVX=-avx2"

echo Please specify the desired AVX version (avx, avx2, avx512), or leave it blank to use the default version (avx2):
set /p USER_AVX=

if not "%USER_AVX%"=="" (
set "AVX=-%USER_AVX%"
)

:arg_loop
if "%~1"=="" goto arg_loop_end
if "%~1"=="--gpu" (
Expand All @@ -37,7 +45,7 @@ if "%VERSION%"=="latest" (
)

:: Construct the download URL
set "URL=https://github.com/janhq/nitro/releases/download/v%VERSION%/nitro-%VERSION%-win-amd64"
set "URL=https://github.com/janhq/nitro/releases/download/v%VERSION%/nitro-%VERSION%-win-amd64%AVX%"
if "%GPU%"=="true" (
:: If --gpu option is provided, append -cuda to the URL
set "URL=%URL%-cuda"
Expand Down