Files
warp/script/install_cargo_build_deps
2026-04-28 08:43:33 -05:00

24 lines
825 B
Bash
Executable File

#!/usr/bin/env bash
#
# Installs all cargo-managed dependencies required to build Warp.
# This script should be platform-agnostic (eg. no unix-only references like /dev/null).
"$PWD"/script/install_cargo_binstall
# Use cargo-binstall to install the Diesel CLI.
#
# This is only needed for local development, so we skip it when running on GitHub
# (either for CI or building a release).
if [ "${GITHUB_ACTIONS}" != "true" ]; then
cargo binstall --force -y diesel_cli
fi
# Install the internal channel config binary. This will fail gracefully for
# external contributors who don't have access to the private configuration.
"$PWD"/script/install_channel_config || echo "Skipping internal channel config installation (no repo access)."
if [ "$(uname -s)" = "Darwin" ]; then
"$PWD"/script/macos/install_build_deps
fi