This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Addition of New install.sh for linux, macos and install.bat for windows #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new install.sh script to the codebase. This script is designed to automate the installation process of the project's dependencies and the project itself, making it easier for users to get started.
Key features of the script include:
Task:
install.shfor linux and macosinstall.batfor windowsQuick test, default is CPU option and latest nitro version:
curl -sfL https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.sh | sudo /bin/bash -curl -sfL https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.sh -o /tmp/install.sh && sudo bash /tmp/install.sh --version 0.1.7 && rm /tmp/install.shcurl -sfL https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.sh -o /tmp/install.sh && sudo bash /tmp/install.sh --gpu && rm /tmp/install.shcurl -sfL https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.sh -o /tmp/install.sh && sudo bash /tmp/install.sh --gpu --version 0.1.7 && rm /tmp/install.shpowershell -Command "& { Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.bat' -OutFile 'install.bat'; .\install.bat; Remove-Item -Path 'install.bat' }"powershell -Command "& { Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.bat' -OutFile 'install.bat'; .\install.bat --version 0.1.7; Remove-Item -Path 'install.bat' }"powershell -Command "& { Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.bat' -OutFile 'install.bat'; .\install.bat --gpu; Remove-Item -Path 'install.bat' }"powershell -Command "& { Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/janhq/nitro/feature/install-script/install.bat' -OutFile 'install.bat'; .\install.bat --gpu --version 0.1.7; Remove-Item -Path 'install.bat' }"Usage
After installing nitro on your os, open another terminal or powershell and just type
nitro(ornitro.exeon windows) then press enter, nitro server will be started and you can start using it from now.Windows Result:

Linux Result:

Mac Silicon result:
To uninstall nitro:
sudo uninstall_nitro.shfrom any where since the script is added to PATHuninstallnitro.batfrom any where since the script is added to PATH