Linux Packaging
Overview
This guide will help you set up a complete development environment for building and running Sparrow on Linux systems. Sparrow is built using tauri which requires multiple dependencies. This will help you to get started on debian based system. For more details refer Officail Tauri Documentation
Install Build Tools
Install the build tool-chain using below command in the terminal:
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
Install Rust
Download and install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Rust version used during this documentation: 1.83
Install Node.js and Yarn via NVM
Install NVM (Node Version Manager):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh |
Source NVM without restarting the shell:
\. "$HOME/.nvm/nvm.sh"
Install Node.js version 22:
nvm install 22
Verify installation:
node -v # Expected output: v2x.xx.x
nvm current # Expected output: v2x.xx.x
Enable and verify Yarn:
corepack enable yarn
yarn -v
Note: If you are using VS Code installed via Snap, the integrated terminal may use a Snap-installed version of Yarn, which can cause issues. Use a non-Snap version if problems occur. Or open the working directory via system terminal.
Building the Package
After all these steps your environment is ready to build and run sparrow. The detailed steps can be followed on the official repo. Refer Sparrow Github.