Files
warp/script/linux/install_runtime_deps
Tautik Agrahari ce89a98b53 fix(bootstrap): warn before sudo and document install steps (#9501)
- new `script/warp_sudo`: echoes each privileged command, prompts
`[y/N]` from `/dev/tty`, shells to real `sudo` on confirm.
`WARP_BOOTSTRAP_YES=1` or non-tty stdin skips.
- `script/bootstrap`: static `--help` install list dropped. `-y`/`--yes`
exports `WARP_BOOTSTRAP_YES=1` for children.
- ten direct `sudo` call-sites in `script/{macos,linux}/bootstrap` +
`script/linux/install_{build,runtime,test}_deps` switched to
`warp_sudo`. windows unchanged.
- `README.md`: short "what `./script/bootstrap` does" subsection
pointing at the platform scripts as the source of truth.

closes #9421.
2026-05-04 16:36:47 -04:00

43 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# Install all dependencies required to build and run Warp on Linux.
set -e
. "$PWD/script/warp_sudo"
# Define some control sequences for text formatting.
red="\033[0;31m"
reset="\033[0m"
# Install build dependencies.
"$PWD"/script/linux/install_build_deps
# Install additional runtime dependencies.
UNAME="$(uname -a)"
if [[ "$(source /etc/os-release; echo $ID $ID_LIKE)" = *"debian"* ]]; then
echo "⬇️ Installing runtime dependencies..."
# Define the packages to install as a bash array so we can include
# comments between lines.
PACKAGES=(
locales
# Runtime library to get font information.
fontconfig
# Runtime library for deflate compression.
zlib1g
# Runtime libraries for X11.
libx11-6 libxcb1 libxi6 libxcursor1 libxkbcommon-x11-0
# Runtime libraries for Wayland.
libwayland-client0 libwayland-egl1
# Open-source Vulkan drivers from the mesa project.
mesa-vulkan-drivers
# Runtime libraries for EGL.
libegl1
# Ensuring at least one cursor library for WSL.
yaru-theme-icon
)
warp_sudo apt-get install -y "${PACKAGES[@]}"
else
echo -e "⚠️ ${red}Unknown Linux distribution; necessary runtime dependencies may not be installed!${reset}"
fi