BSL Installation

Before you can start writing and running BSL scripts, you need to install the BSL interpreter on your computer.

There are different ways to install BSL depending on your operating system. Choose the method that works best for you!

Windows Installation (Microsoft Store)

If you are using Windows 10 or Windows 11, the easiest and safest way to install BSL is through the official Microsoft Store. This method automatically handles your system environment variables and keeps the software updated.

Steps:
1. Open the Microsoft Store app from your Windows Start Menu.
2. Search for "Bonezegei Scripting Language".
3. Click the Get or Install button.
4. Wait for the download and installation to complete.

(Alternatively, you can go directly to the BSL Microsoft Store Page in your web browser).

Windows Installation (Standalone .msi)

Steps:
1. Go to the official BSL GitHub repository and download the latest Windows x64 .msi file from the Releases section.
2. Double-click the downloaded .msi file to launch the setup wizard.
3. Security Prompt: Because the BSL installer is self-signed, Windows Defender SmartScreen might flag it as an "Unknown Publisher." To proceed, click "More Info", and then click "Run anyway".
4. Follow the installation wizard: choose your preferred directory, accept the MIT License agreement, and click Finish.

Linux Installation (.deb)

For Linux users (specifically Debian/Ubuntu-based distributions), BSL provides a compiled .deb package.

Steps:
1. Download the latest Linux x86 .deb file from the BSL GitHub repository.
2. Open your terminal and navigate to the folder where you downloaded the file (usually the Downloads folder).
3. Run the following command to install the package:

sudo apt install ./Bonezegei-x86.deb

4. Enter your password when prompted and wait for the installation to finish.

Verify Your Installation

No matter which operating system or method you used, you should verify that the BSL interpreter is installed correctly and recognized by your system.

1. Open your Command Prompt (Windows), PowerShell (Windows), or Terminal (Linux).
2. Type the following command and press Enter:

bonezegei --version

If the installation was successful, your terminal will print the current version of the BSL interpreter. You are now ready to start coding!

Now that BSL is installed on your computer, let's write your very first BSL code in the next chapter!