mirror of
https://github.com/warpdotdev/warp.git
synced 2026-05-07 23:58:47 +08:00
- 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.
26 lines
721 B
Bash
Executable File
26 lines
721 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
. "$PWD/script/warp_sudo"
|
|
|
|
# Update the apt cache before installing dependencies. It can be slow, so the install scripts
|
|
# don't do it (to avoid doing it more than once).
|
|
warp_sudo apt update -y
|
|
|
|
# Install all dependencies needed to build, run, and test Warp.
|
|
"$PWD"/script/linux/install_test_deps
|
|
|
|
# Install linuxdeploy.
|
|
"$PWD"/script/linux/install_linuxdeploy
|
|
|
|
# Make sure we're authenticated with the gcloud CLI, otherwise SSH integration
|
|
# tests won't work.
|
|
if [[ -z "$(gcloud auth print-identity-token)" ]]; then
|
|
echo "gcloud CLI authentication missing. Press enter to continue..."
|
|
read var
|
|
gcloud auth login
|
|
fi
|
|
|
|
echo "✅ Your machine is bootstrapped and ready to go. :)"
|